diff --git a/admin/people_item_insights_request_builder.go b/admin/people_item_insights_request_builder.go new file mode 100644 index 0000000000..16820ff424 --- /dev/null +++ b/admin/people_item_insights_request_builder.go @@ -0,0 +1,163 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// PeopleItemInsightsRequestBuilder provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. +type PeopleItemInsightsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// PeopleItemInsightsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleItemInsightsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// PeopleItemInsightsRequestBuilderGetQueryParameters get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. +type PeopleItemInsightsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// PeopleItemInsightsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleItemInsightsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *PeopleItemInsightsRequestBuilderGetQueryParameters +} +// PeopleItemInsightsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type PeopleItemInsightsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewPeopleItemInsightsRequestBuilderInternal instantiates a new PeopleItemInsightsRequestBuilder and sets the default values. +func NewPeopleItemInsightsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeopleItemInsightsRequestBuilder) { + m := &PeopleItemInsightsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/people/itemInsights{?%24expand,%24select}", pathParameters), + } + return m +} +// NewPeopleItemInsightsRequestBuilder instantiates a new PeopleItemInsightsRequestBuilder and sets the default values. +func NewPeopleItemInsightsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*PeopleItemInsightsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewPeopleItemInsightsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property itemInsights for admin +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *PeopleItemInsightsRequestBuilder) Delete(ctx context.Context, requestConfiguration *PeopleItemInsightsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. +// returns a InsightsSettingsable 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/peopleadminsettings-list-iteminsights?view=graph-rest-1.0 +func (m *PeopleItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *PeopleItemInsightsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateInsightsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable), nil +} +// Patch update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. +// returns a InsightsSettingsable 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/insightssettings-update?view=graph-rest-1.0 +func (m *PeopleItemInsightsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable, requestConfiguration *PeopleItemInsightsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateInsightsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable), nil +} +// ToDeleteRequestInformation delete navigation property itemInsights for admin +// returns a *RequestInformation when successful +func (m *PeopleItemInsightsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PeopleItemInsightsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph. +// returns a *RequestInformation when successful +func (m *PeopleItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PeopleItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph. +// returns a *RequestInformation when successful +func (m *PeopleItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InsightsSettingsable, requestConfiguration *PeopleItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *PeopleItemInsightsRequestBuilder when successful +func (m *PeopleItemInsightsRequestBuilder) WithUrl(rawUrl string)(*PeopleItemInsightsRequestBuilder) { + return NewPeopleItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/people_request_builder.go b/admin/people_request_builder.go index 9bc1d665bc..9c24116f31 100644 --- a/admin/people_request_builder.go +++ b/admin/people_request_builder.go @@ -63,6 +63,11 @@ func (m *PeopleRequestBuilder) Get(ctx context.Context, requestConfiguration *Pe } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PeopleAdminSettingsable), nil } +// ItemInsights provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity. +// returns a *PeopleItemInsightsRequestBuilder when successful +func (m *PeopleRequestBuilder) ItemInsights()(*PeopleItemInsightsRequestBuilder) { + return NewPeopleItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ProfileCardProperties provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity. // returns a *PeopleProfileCardPropertiesRequestBuilder when successful func (m *PeopleRequestBuilder) ProfileCardProperties()(*PeopleProfileCardPropertiesRequestBuilder) { diff --git a/applications/item_federated_identity_credentials_federated_identity_credential_item_request_builder.go b/applications/item_federated_identity_credentials_federated_identity_credential_item_request_builder.go index daf98f0ebe..e8f7b9a301 100644 --- a/applications/item_federated_identity_credentials_federated_identity_credential_item_request_builder.go +++ b/applications/item_federated_identity_credentials_federated_identity_credential_item_request_builder.go @@ -96,7 +96,7 @@ func (m *ItemFederatedIdentityCredentialsFederatedIdentityCredentialItemRequestB } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FederatedIdentityCredentialable), nil } -// Patch create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. +// Patch create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. // returns a FederatedIdentityCredentialable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -144,7 +144,7 @@ func (m *ItemFederatedIdentityCredentialsFederatedIdentityCredentialItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. +// ToPatchRequestInformation create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. // returns a *RequestInformation when successful func (m *ItemFederatedIdentityCredentialsFederatedIdentityCredentialItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FederatedIdentityCredentialable, requestConfiguration *ItemFederatedIdentityCredentialsFederatedIdentityCredentialItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/applications/item_federated_identity_credentials_with_name_request_builder.go b/applications/item_federated_identity_credentials_with_name_request_builder.go index 88b9cf10cc..cfa71fd084 100644 --- a/applications/item_federated_identity_credentials_with_name_request_builder.go +++ b/applications/item_federated_identity_credentials_with_name_request_builder.go @@ -99,7 +99,7 @@ func (m *ItemFederatedIdentityCredentialsWithNameRequestBuilder) Get(ctx context } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FederatedIdentityCredentialable), nil } -// Patch create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. +// Patch create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. // returns a FederatedIdentityCredentialable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -147,7 +147,7 @@ func (m *ItemFederatedIdentityCredentialsWithNameRequestBuilder) ToGetRequestInf requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation create a new federatedIdentityCredential object for an application if it does exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. +// ToPatchRequestInformation create a new federatedIdentityCredential object for an application if it doesn't exist, or update the properties of an existing federatedIdentityCredential object. By configuring a trust relationship between your Microsoft Entra application registration and the identity provider for your compute platform, you can use tokens issued by that platform to authenticate with Microsoft identity platform and call APIs in the Microsoft ecosystem. Maximum of 20 objects can be added to an application. // returns a *RequestInformation when successful func (m *ItemFederatedIdentityCredentialsWithNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FederatedIdentityCredentialable, requestConfiguration *ItemFederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/applications/item_get_member_groups_request_builder.go b/applications/item_get_member_groups_request_builder.go index 8020554994..35f3703517 100644 --- a/applications/item_get_member_groups_request_builder.go +++ b/applications/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/chats/chats_request_builder.go b/chats/chats_request_builder.go index 3407b511a7..26699b9581 100644 --- a/chats/chats_request_builder.go +++ b/chats/chats_request_builder.go @@ -104,6 +104,11 @@ func (m *ChatsRequestBuilder) Get(ctx context.Context, requestConfiguration *Cha func (m *ChatsRequestBuilder) GetAllMessages()(*GetAllMessagesRequestBuilder) { return NewGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *GetAllRetainedMessagesRequestBuilder when successful +func (m *ChatsRequestBuilder) GetAllRetainedMessages()(*GetAllRetainedMessagesRequestBuilder) { + return NewGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create a new chat object. // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/chats/get_all_retained_messages_get_response.go b/chats/get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..f8a7dd1e15 --- /dev/null +++ b/chats/get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package chats + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type GetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewGetAllRetainedMessagesGetResponse instantiates a new GetAllRetainedMessagesGetResponse and sets the default values. +func NewGetAllRetainedMessagesGetResponse()(*GetAllRetainedMessagesGetResponse) { + m := &GetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *GetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *GetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *GetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *GetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type GetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/chats/get_all_retained_messages_request_builder.go b/chats/get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..900827b200 --- /dev/null +++ b/chats/get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package chats + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// GetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type GetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// GetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type GetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// GetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type GetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *GetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewGetAllRetainedMessagesRequestBuilderInternal instantiates a new GetAllRetainedMessagesRequestBuilder and sets the default values. +func NewGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*GetAllRetainedMessagesRequestBuilder) { + m := &GetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewGetAllRetainedMessagesRequestBuilder instantiates a new GetAllRetainedMessagesRequestBuilder and sets the default values. +func NewGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*GetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a GetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *GetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(GetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(GetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a GetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *GetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(GetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(GetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *GetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *GetAllRetainedMessagesRequestBuilder when successful +func (m *GetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*GetAllRetainedMessagesRequestBuilder) { + return NewGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/chats/get_all_retained_messages_response.go b/chats/get_all_retained_messages_response.go new file mode 100644 index 0000000000..51531bf337 --- /dev/null +++ b/chats/get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package chats + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use GetAllRetainedMessagesGetResponseable instead. +type GetAllRetainedMessagesResponse struct { + GetAllRetainedMessagesGetResponse +} +// NewGetAllRetainedMessagesResponse instantiates a new GetAllRetainedMessagesResponse and sets the default values. +func NewGetAllRetainedMessagesResponse()(*GetAllRetainedMessagesResponse) { + m := &GetAllRetainedMessagesResponse{ + GetAllRetainedMessagesGetResponse: *NewGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use GetAllRetainedMessagesGetResponseable instead. +type GetAllRetainedMessagesResponseable interface { + GetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/chats/item_members_conversation_member_item_request_builder.go b/chats/item_members_conversation_member_item_request_builder.go index 3f0b1b5cc8..bf1a59e261 100644 --- a/chats/item_members_conversation_member_item_request_builder.go +++ b/chats/item_members_conversation_member_item_request_builder.go @@ -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"` @@ -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 { @@ -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) diff --git a/communications/calls_item_participants_invite_request_builder.go b/communications/calls_item_participants_invite_request_builder.go index 4194bb7808..a73f4bcd92 100644 --- a/communications/calls_item_participants_invite_request_builder.go +++ b/communications/calls_item_participants_invite_request_builder.go @@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter urlParams["request-raw-url"] = rawUrl return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter) } -// Post invite participants to the active call. For more information about how to handle operations, see commsOperation. +// 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. // returns a InviteParticipantsOperationable 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/participant-invite?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0 func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable), nil } -// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation. +// 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. // returns a *RequestInformation when successful func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/contacts/item_get_member_groups_request_builder.go b/contacts/item_get_member_groups_request_builder.go index 5e56e764ee..9cfb20c8d9 100644 --- a/contacts/item_get_member_groups_request_builder.go +++ b/contacts/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/contracts/item_get_member_groups_request_builder.go b/contracts/item_get_member_groups_request_builder.go index ffd180ba60..cb4784f412 100644 --- a/contracts/item_get_member_groups_request_builder.go +++ b/contracts/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/device_app_management_request_builder.go b/deviceappmanagement/device_app_management_request_builder.go index c25013729d..c6f572761f 100644 --- a/deviceappmanagement/device_app_management_request_builder.go +++ b/deviceappmanagement/device_app_management_request_builder.go @@ -62,7 +62,7 @@ func (m *DeviceAppManagementRequestBuilder) DefaultManagedAppProtections()(*Defa // 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/intune-unlock-deviceappmanagement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0 func (m *DeviceAppManagementRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceAppManagementRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -130,7 +130,7 @@ func (m *DeviceAppManagementRequestBuilder) MobileApps()(*MobileAppsRequestBuild // 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/intune-books-deviceappmanagement-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0 func (m *DeviceAppManagementRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, requestConfiguration *DeviceAppManagementRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceAppManagementable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go index 0c6f9f93b0..1a6181f78a 100644 --- a/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppPoliciesItemTargetAppsRequestBuilder(rawUrl string, requestAda // 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/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 func (m *ManagedAppPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_policies_request_builder.go b/deviceappmanagement/managed_app_policies_request_builder.go index 3ef9d180eb..e005c0a3cb 100644 --- a/deviceappmanagement/managed_app_policies_request_builder.go +++ b/deviceappmanagement/managed_app_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppPoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppPoliciesRequestBuilderGetQueryParameters list properties and relationships of the windowsInformationProtection objects. +// ManagedAppPoliciesRequestBuilderGetQueryParameters list properties and relationships of the managedAppConfiguration objects. type ManagedAppPoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppPoliciesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ManagedAppPoliciesRequestBuilder) Count()(*ManagedAppPoliciesCountRequestBuilder) { return NewManagedAppPoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the windowsInformationProtection objects. +// Get list properties and relationships of the managedAppConfiguration objects. // returns a ManagedAppPolicyCollectionResponseable 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/intune-mam-windowsinformationprotection-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappconfiguration-list?view=graph-rest-1.0 func (m *ManagedAppPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppPoliciesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppPolicyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedAppPoliciesRequestBuilder) Post(ctx context.Context, body iadcd8 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppPolicyable), nil } -// ToGetRequestInformation list properties and relationships of the windowsInformationProtection objects. +// ToGetRequestInformation list properties and relationships of the managedAppConfiguration objects. // returns a *RequestInformation when successful func (m *ManagedAppPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go index 6a494018d5..36a08e1b66 100644 --- a/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_item_applied_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilder(r // 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/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 func (m *ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppRegistrationsItemAppliedPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go b/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go index ee43284d31..aaa08ba093 100644 --- a/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_item_intended_policies_item_target_apps_request_builder.go @@ -34,7 +34,7 @@ func NewManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilder( // 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/intune-mam-targetedmanagedappprotection-targetapps?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0 func (m *ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilder) Post(ctx context.Context, body ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsPostRequestBodyable, requestConfiguration *ManagedAppRegistrationsItemIntendedPoliciesItemTargetAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go b/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go index 1ea07360da..a20d0c2d1b 100644 --- a/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_managed_app_registration_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters read properties and relationships of the iosManagedAppRegistration object. +// ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppRegistration object. type ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,12 +75,12 @@ func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Delete } return nil } -// Get read properties and relationships of the iosManagedAppRegistration object. +// Get read properties and relationships of the managedAppRegistration object. // returns a ManagedAppRegistrationable 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/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappregistration-get?view=graph-rest-1.0 func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -139,7 +139,7 @@ func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the iosManagedAppRegistration object. +// ToGetRequestInformation read properties and relationships of the managedAppRegistration object. // returns a *RequestInformation when successful func (m *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_registrations_request_builder.go b/deviceappmanagement/managed_app_registrations_request_builder.go index 8ad44f05a5..b893796343 100644 --- a/deviceappmanagement/managed_app_registrations_request_builder.go +++ b/deviceappmanagement/managed_app_registrations_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppRegistrationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppRegistrationsRequestBuilderGetQueryParameters list properties and relationships of the managedAppRegistration objects. +// ManagedAppRegistrationsRequestBuilderGetQueryParameters list properties and relationships of the androidManagedAppRegistration objects. type ManagedAppRegistrationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppRegistrationsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *ManagedAppRegistrationsRequestBuilder) Count()(*ManagedAppRegistrationsCountRequestBuilder) { return NewManagedAppRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedAppRegistration objects. +// Get list properties and relationships of the androidManagedAppRegistration objects. // returns a ManagedAppRegistrationCollectionResponseable 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/intune-mam-managedappregistration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0 func (m *ManagedAppRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *ManagedAppRegistrationsRequestBuilder) Post(ctx context.Context, body i } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppRegistrationable), nil } -// ToGetRequestInformation list properties and relationships of the managedAppRegistration objects. +// ToGetRequestInformation list properties and relationships of the androidManagedAppRegistration objects. // returns a *RequestInformation when successful func (m *ManagedAppRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go b/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go index 6bb83c7ee3..c305ec3804 100644 --- a/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go +++ b/deviceappmanagement/managed_app_statuses_managed_app_status_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedAppStatusesManagedAppStatusItemRequestBuilderDeleteRequestConfigurat // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppStatusRaw object. +// ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters read properties and relationships of the managedAppStatus object. type ManagedAppStatusesManagedAppStatusItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,12 +70,12 @@ func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) Delete(ctx contex } return nil } -// Get read properties and relationships of the managedAppStatusRaw object. +// Get read properties and relationships of the managedAppStatus object. // returns a ManagedAppStatusable 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/intune-mam-managedappstatusraw-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-get?view=graph-rest-1.0 func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppStatusesManagedAppStatusItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) ToDeleteRequestIn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedAppStatusRaw object. +// ToGetRequestInformation read properties and relationships of the managedAppStatus object. // returns a *RequestInformation when successful func (m *ManagedAppStatusesManagedAppStatusItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppStatusesManagedAppStatusItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_app_statuses_request_builder.go b/deviceappmanagement/managed_app_statuses_request_builder.go index ba029949f1..1d0ac0f5ab 100644 --- a/deviceappmanagement/managed_app_statuses_request_builder.go +++ b/deviceappmanagement/managed_app_statuses_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedAppStatusesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedAppStatusesRequestBuilderGetQueryParameters list properties and relationships of the managedAppStatusRaw objects. +// ManagedAppStatusesRequestBuilderGetQueryParameters list properties and relationships of the managedAppStatus objects. type ManagedAppStatusesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedAppStatusesRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *ManagedAppStatusesRequestBuilder) Count()(*ManagedAppStatusesCountRequestBuilder) { return NewManagedAppStatusesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedAppStatusRaw objects. +// Get list properties and relationships of the managedAppStatus objects. // returns a ManagedAppStatusCollectionResponseable 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/intune-mam-managedappstatusraw-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-mam-managedappstatus-list?view=graph-rest-1.0 func (m *ManagedAppStatusesRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedAppStatusesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedAppStatusesRequestBuilder) Post(ctx context.Context, body iadcd8 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedAppStatusable), nil } -// ToGetRequestInformation list properties and relationships of the managedAppStatusRaw objects. +// ToGetRequestInformation list properties and relationships of the managedAppStatus objects. // returns a *RequestInformation when successful func (m *ManagedAppStatusesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedAppStatusesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go b/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go index 60eda4c116..498f90cbe3 100644 --- a/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go +++ b/deviceappmanagement/managed_e_books_item_assignments_managed_e_book_assignment_item_request_builder.go @@ -54,11 +54,11 @@ func NewManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a iosVppEBookAssignment. +// Delete deletes a managedEBookAssignment. // 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/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) P } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable), nil } -// ToDeleteRequestInformation deletes a iosVppEBookAssignment. +// ToDeleteRequestInformation deletes a managedEBookAssignment. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsManagedEBookAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_item_assignments_request_builder.go b/deviceappmanagement/managed_e_books_item_assignments_request_builder.go index 8e5b2bc035..04ea115496 100644 --- a/deviceappmanagement/managed_e_books_item_assignments_request_builder.go +++ b/deviceappmanagement/managed_e_books_item_assignments_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedEBooksItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters list properties and relationships of the managedEBookAssignment objects. +// ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters list properties and relationships of the iosVppEBookAssignment objects. type ManagedEBooksItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedEBooksItemAssignmentsRequestBuilder(rawUrl string, requestAdapter func (m *ManagedEBooksItemAssignmentsRequestBuilder) Count()(*ManagedEBooksItemAssignmentsCountRequestBuilder) { return NewManagedEBooksItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedEBookAssignment objects. +// Get list properties and relationships of the iosVppEBookAssignment objects. // returns a ManagedEBookAssignmentCollectionResponseable 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/intune-books-managedebookassignment-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,12 +99,12 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) Get(ctx context.Context, re } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentCollectionResponseable), nil } -// Post create a new iosVppEBookAssignment object. +// Post create a new managedEBookAssignment object. // returns a ManagedEBookAssignmentable 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/intune-books-iosvppebookassignment-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0 func (m *ManagedEBooksItemAssignmentsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) Post(ctx context.Context, b } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable), nil } -// ToGetRequestInformation list properties and relationships of the managedEBookAssignment objects. +// ToGetRequestInformation list properties and relationships of the iosVppEBookAssignment objects. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new iosVppEBookAssignment object. +// ToPostRequestInformation create a new managedEBookAssignment object. // returns a *RequestInformation when successful func (m *ManagedEBooksItemAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookAssignmentable, requestConfiguration *ManagedEBooksItemAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go b/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go index f3ed21c726..079b72a383 100644 --- a/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go +++ b/deviceappmanagement/managed_e_books_managed_e_book_item_request_builder.go @@ -18,7 +18,7 @@ type ManagedEBooksManagedEBookItemRequestBuilderDeleteRequestConfiguration struc // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters read properties and relationships of the iosVppEBook object. +// ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters read properties and relationships of the managedEBook object. type ManagedEBooksManagedEBookItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -88,12 +88,12 @@ func (m *ManagedEBooksManagedEBookItemRequestBuilder) Delete(ctx context.Context func (m *ManagedEBooksManagedEBookItemRequestBuilder) DeviceStates()(*ManagedEBooksItemDeviceStatesRequestBuilder) { return NewManagedEBooksItemDeviceStatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the iosVppEBook object. +// Get read properties and relationships of the managedEBook object. // returns a ManagedEBookable 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/intune-books-iosvppebook-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebook-get?view=graph-rest-1.0 func (m *ManagedEBooksManagedEBookItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksManagedEBookItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -150,7 +150,7 @@ func (m *ManagedEBooksManagedEBookItemRequestBuilder) ToDeleteRequestInformation requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the iosVppEBook object. +// ToGetRequestInformation read properties and relationships of the managedEBook object. // returns a *RequestInformation when successful func (m *ManagedEBooksManagedEBookItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksManagedEBookItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/managed_e_books_request_builder.go b/deviceappmanagement/managed_e_books_request_builder.go index 1faa1c5dc1..300a108c82 100644 --- a/deviceappmanagement/managed_e_books_request_builder.go +++ b/deviceappmanagement/managed_e_books_request_builder.go @@ -11,7 +11,7 @@ import ( type ManagedEBooksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ManagedEBooksRequestBuilderGetQueryParameters list properties and relationships of the iosVppEBook objects. +// ManagedEBooksRequestBuilderGetQueryParameters list properties and relationships of the managedEBook objects. type ManagedEBooksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewManagedEBooksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *ManagedEBooksRequestBuilder) Count()(*ManagedEBooksCountRequestBuilder) { return NewManagedEBooksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the iosVppEBook objects. +// Get list properties and relationships of the managedEBook objects. // returns a ManagedEBookCollectionResponseable 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/intune-books-iosvppebook-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-books-managedebook-list?view=graph-rest-1.0 func (m *ManagedEBooksRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedEBooksRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *ManagedEBooksRequestBuilder) Post(ctx context.Context, body iadcd811244 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedEBookable), nil } -// ToGetRequestInformation list properties and relationships of the iosVppEBook objects. +// ToGetRequestInformation list properties and relationships of the managedEBook objects. // returns a *RequestInformation when successful func (m *ManagedEBooksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedEBooksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go b/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go index fd7fe89944..7c88ee9e72 100644 --- a/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go +++ b/deviceappmanagement/mobile_app_configurations_managed_device_mobile_app_configuration_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilde // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the iosMobileAppConfiguration object. +// MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the managedDeviceMobileAppConfiguration object. type MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -93,12 +93,12 @@ func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBu func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) DeviceStatusSummary()(*MobileAppConfigurationsItemDeviceStatusSummaryRequestBuilder) { return NewMobileAppConfigurationsItemDeviceStatusSummaryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the iosMobileAppConfiguration object. +// Get read properties and relationships of the managedDeviceMobileAppConfiguration object. // returns a ManagedDeviceMobileAppConfigurationable 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/intune-apps-iosmobileappconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-manageddevicemobileappconfiguration-get?view=graph-rest-1.0 func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedDeviceMobileAppConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -150,7 +150,7 @@ func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the iosMobileAppConfiguration object. +// ToGetRequestInformation read properties and relationships of the managedDeviceMobileAppConfiguration object. // returns a *RequestInformation when successful func (m *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppConfigurationsManagedDeviceMobileAppConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_app_configurations_request_builder.go b/deviceappmanagement/mobile_app_configurations_request_builder.go index 87e907abb7..0b8204a865 100644 --- a/deviceappmanagement/mobile_app_configurations_request_builder.go +++ b/deviceappmanagement/mobile_app_configurations_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppConfigurationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the managedDeviceMobileAppConfiguration objects. +// MobileAppConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the iosMobileAppConfiguration objects. type MobileAppConfigurationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewMobileAppConfigurationsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *MobileAppConfigurationsRequestBuilder) Count()(*MobileAppConfigurationsCountRequestBuilder) { return NewMobileAppConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the managedDeviceMobileAppConfiguration objects. +// Get list properties and relationships of the iosMobileAppConfiguration objects. // returns a ManagedDeviceMobileAppConfigurationCollectionResponseable 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/intune-apps-manageddevicemobileappconfiguration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-iosmobileappconfiguration-list?view=graph-rest-1.0 func (m *MobileAppConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppConfigurationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedDeviceMobileAppConfigurationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *MobileAppConfigurationsRequestBuilder) Post(ctx context.Context, body i } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ManagedDeviceMobileAppConfigurationable), nil } -// ToGetRequestInformation list properties and relationships of the managedDeviceMobileAppConfiguration objects. +// ToGetRequestInformation list properties and relationships of the iosMobileAppConfiguration objects. // returns a *RequestInformation when successful func (m *MobileAppConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go b/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go index 27c4f5daac..028dc9c365 100644 --- a/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_mobile_app_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsMobileAppItemRequestBuilderGetQueryParameters read properties and relationships of the managedApp object. +// MobileAppsMobileAppItemRequestBuilderGetQueryParameters read properties and relationships of the windowsWebApp object. type MobileAppsMobileAppItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -69,11 +69,11 @@ func NewMobileAppsMobileAppItemRequestBuilder(rawUrl string, requestAdapter i2ae urlParams["request-raw-url"] = rawUrl return NewMobileAppsMobileAppItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a macOSOfficeSuiteApp. +// Delete deletes a managedAndroidStoreApp. // 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/intune-apps-macosofficesuiteapp-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-managedandroidstoreapp-delete?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -88,12 +88,12 @@ func (m *MobileAppsMobileAppItemRequestBuilder) Delete(ctx context.Context, requ } return nil } -// Get read properties and relationships of the managedApp object. +// Get read properties and relationships of the windowsWebApp object. // returns a MobileAppable 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/intune-apps-managedapp-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-get?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -191,12 +191,12 @@ func (m *MobileAppsMobileAppItemRequestBuilder) GraphWindowsUniversalAppX()(*Mob func (m *MobileAppsMobileAppItemRequestBuilder) GraphWindowsWebApp()(*MobileAppsItemGraphWindowsWebAppRequestBuilder) { return NewMobileAppsItemGraphWindowsWebAppRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a macOSOfficeSuiteApp object. +// Patch update the properties of a windowsMicrosoftEdgeApp object. // returns a MobileAppable 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/intune-apps-macosofficesuiteapp-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowsmicrosoftedgeapp-update?view=graph-rest-1.0 func (m *MobileAppsMobileAppItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsMobileAppItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -214,7 +214,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) Patch(ctx context.Context, body } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable), nil } -// ToDeleteRequestInformation deletes a macOSOfficeSuiteApp. +// ToDeleteRequestInformation deletes a managedAndroidStoreApp. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -225,7 +225,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) ToDeleteRequestInformation(ctx c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the managedApp object. +// ToGetRequestInformation read properties and relationships of the windowsWebApp object. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsMobileAppItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -239,7 +239,7 @@ func (m *MobileAppsMobileAppItemRequestBuilder) ToGetRequestInformation(ctx cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a macOSOfficeSuiteApp object. +// ToPatchRequestInformation update the properties of a windowsMicrosoftEdgeApp object. // returns a *RequestInformation when successful func (m *MobileAppsMobileAppItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsMobileAppItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_request_builder.go b/deviceappmanagement/mobile_apps_request_builder.go index 1395f471b7..94d83eca5f 100644 --- a/deviceappmanagement/mobile_apps_request_builder.go +++ b/deviceappmanagement/mobile_apps_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsRequestBuilderGetQueryParameters list properties and relationships of the windowsAppX objects. +// MobileAppsRequestBuilderGetQueryParameters list properties and relationships of the windowsUniversalAppX objects. type MobileAppsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewMobileAppsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *MobileAppsRequestBuilder) Count()(*MobileAppsCountRequestBuilder) { return NewMobileAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the windowsAppX objects. +// Get list properties and relationships of the windowsUniversalAppX objects. // returns a MobileAppCollectionResponseable 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/intune-apps-windowsappx-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowsuniversalappx-list?view=graph-rest-1.0 func (m *MobileAppsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -179,12 +179,12 @@ func (m *MobileAppsRequestBuilder) GraphWindowsUniversalAppX()(*MobileAppsGraphW func (m *MobileAppsRequestBuilder) GraphWindowsWebApp()(*MobileAppsGraphWindowsWebAppRequestBuilder) { return NewMobileAppsGraphWindowsWebAppRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new macOSOfficeSuiteApp object. +// Post create a new windowsWebApp object. // returns a MobileAppable 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/intune-apps-macosofficesuiteapp-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-apps-windowswebapp-create?view=graph-rest-1.0 func (m *MobileAppsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -202,7 +202,7 @@ func (m *MobileAppsRequestBuilder) Post(ctx context.Context, body iadcd81124412c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable), nil } -// ToGetRequestInformation list properties and relationships of the windowsAppX objects. +// ToGetRequestInformation list properties and relationships of the windowsUniversalAppX objects. // returns a *RequestInformation when successful func (m *MobileAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -216,7 +216,7 @@ func (m *MobileAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new macOSOfficeSuiteApp object. +// ToPostRequestInformation create a new windowsWebApp object. // returns a *RequestInformation when successful func (m *MobileAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MobileAppable, requestConfiguration *MobileAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go b/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go index 1de960462e..e57f980868 100644 --- a/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go +++ b/devicemanagement/device_compliance_policies_device_compliance_policy_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters read properties and relationships of the windows81CompliancePolicy object. +// DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters read properties and relationships of the deviceCompliancePolicy object. type DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -64,11 +64,11 @@ func NewDeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewDeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a windows10CompliancePolicy. +// Delete deletes a androidWorkProfileCompliancePolicy. // 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/intune-deviceconfig-windows10compliancepolicy-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-delete?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -98,12 +98,12 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Devic func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) DeviceStatusOverview()(*DeviceCompliancePoliciesItemDeviceStatusOverviewRequestBuilder) { return NewDeviceCompliancePoliciesItemDeviceStatusOverviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the windows81CompliancePolicy object. +// Get read properties and relationships of the deviceCompliancePolicy object. // returns a DeviceCompliancePolicyable 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/intune-deviceconfig-windows81compliancepolicy-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-devicecompliancepolicy-get?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -121,12 +121,12 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Get(c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable), nil } -// Patch update the properties of a androidWorkProfileCompliancePolicy object. +// Patch update the properties of a windows10MobileCompliancePolicy object. // returns a DeviceCompliancePolicyable 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/intune-deviceconfig-androidworkprofilecompliancepolicy-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-update?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -154,7 +154,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) Sched func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ScheduledActionsForRule()(*DeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilder) { return NewDeviceCompliancePoliciesItemScheduledActionsForRuleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation deletes a windows10CompliancePolicy. +// ToDeleteRequestInformation deletes a androidWorkProfileCompliancePolicy. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -165,7 +165,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToDel requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the windows81CompliancePolicy object. +// ToGetRequestInformation read properties and relationships of the deviceCompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -179,7 +179,7 @@ func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToGet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a androidWorkProfileCompliancePolicy object. +// ToPatchRequestInformation update the properties of a windows10MobileCompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesDeviceCompliancePolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_compliance_policies_request_builder.go b/devicemanagement/device_compliance_policies_request_builder.go index 6d47301e9a..806a583962 100644 --- a/devicemanagement/device_compliance_policies_request_builder.go +++ b/devicemanagement/device_compliance_policies_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceCompliancePoliciesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceCompliancePoliciesRequestBuilderGetQueryParameters list properties and relationships of the windows10CompliancePolicy objects. +// DeviceCompliancePoliciesRequestBuilderGetQueryParameters list properties and relationships of the windows10MobileCompliancePolicy objects. type DeviceCompliancePoliciesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewDeviceCompliancePoliciesRequestBuilder(rawUrl string, requestAdapter i2a func (m *DeviceCompliancePoliciesRequestBuilder) Count()(*DeviceCompliancePoliciesCountRequestBuilder) { return NewDeviceCompliancePoliciesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the windows10CompliancePolicy objects. +// Get list properties and relationships of the windows10MobileCompliancePolicy objects. // returns a DeviceCompliancePolicyCollectionResponseable 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/intune-deviceconfig-windows10compliancepolicy-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10mobilecompliancepolicy-list?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,12 +99,12 @@ func (m *DeviceCompliancePoliciesRequestBuilder) Get(ctx context.Context, reques } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyCollectionResponseable), nil } -// Post create a new windowsPhone81CompliancePolicy object. +// Post create a new androidWorkProfileCompliancePolicy object. // returns a DeviceCompliancePolicyable 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/intune-deviceconfig-windowsphone81compliancepolicy-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-androidworkprofilecompliancepolicy-create?view=graph-rest-1.0 func (m *DeviceCompliancePoliciesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *DeviceCompliancePoliciesRequestBuilder) Post(ctx context.Context, body } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable), nil } -// ToGetRequestInformation list properties and relationships of the windows10CompliancePolicy objects. +// ToGetRequestInformation list properties and relationships of the windows10MobileCompliancePolicy objects. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *DeviceCompliancePoliciesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new windowsPhone81CompliancePolicy object. +// ToPostRequestInformation create a new androidWorkProfileCompliancePolicy object. // returns a *RequestInformation when successful func (m *DeviceCompliancePoliciesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceCompliancePolicyable, requestConfiguration *DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_configurations_device_configuration_item_request_builder.go b/devicemanagement/device_configurations_device_configuration_item_request_builder.go index 48d4896c80..8754b2f6af 100644 --- a/devicemanagement/device_configurations_device_configuration_item_request_builder.go +++ b/devicemanagement/device_configurations_device_configuration_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfi // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. +// DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the macOSGeneralDeviceConfiguration object. type DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -64,11 +64,11 @@ func NewDeviceConfigurationsDeviceConfigurationItemRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewDeviceConfigurationsDeviceConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a windowsPhone81GeneralConfiguration. +// Delete deletes a windows10EndpointProtectionConfiguration. // 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/intune-deviceconfig-windowsphone81generalconfiguration-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10endpointprotectionconfiguration-delete?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -98,12 +98,12 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) DeviceStatus func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) DeviceStatusOverview()(*DeviceConfigurationsItemDeviceStatusOverviewRequestBuilder) { return NewDeviceConfigurationsItemDeviceStatusOverviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. +// Get read properties and relationships of the macOSGeneralDeviceConfiguration object. // returns a DeviceConfigurationable 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/intune-deviceconfig-androidworkprofilegeneraldeviceconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-macosgeneraldeviceconfiguration-get?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -126,12 +126,12 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Get(ctx cont func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) GetOmaSettingPlainTextValueWithSecretReferenceValueId(secretReferenceValueId *string)(*DeviceConfigurationsItemGetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder) { return NewDeviceConfigurationsItemGetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, secretReferenceValueId) } -// Patch update the properties of a iosUpdateConfiguration object. +// Patch update the properties of a editionUpgradeConfiguration object. // returns a DeviceConfigurationable 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/intune-deviceconfig-iosupdateconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-editionupgradeconfiguration-update?view=graph-rest-1.0 func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) Patch(ctx co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable), nil } -// ToDeleteRequestInformation deletes a windowsPhone81GeneralConfiguration. +// ToDeleteRequestInformation deletes a windows10EndpointProtectionConfiguration. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -160,7 +160,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToDeleteRequ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the androidWorkProfileGeneralDeviceConfiguration object. +// ToGetRequestInformation read properties and relationships of the macOSGeneralDeviceConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -174,7 +174,7 @@ func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToGetRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a iosUpdateConfiguration object. +// ToPatchRequestInformation update the properties of a editionUpgradeConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsDeviceConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsDeviceConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_configurations_request_builder.go b/devicemanagement/device_configurations_request_builder.go index fd3b96a840..3f354e75c0 100644 --- a/devicemanagement/device_configurations_request_builder.go +++ b/devicemanagement/device_configurations_request_builder.go @@ -11,7 +11,7 @@ import ( type DeviceConfigurationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DeviceConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. +// DeviceConfigurationsRequestBuilderGetQueryParameters list properties and relationships of the iosUpdateConfiguration objects. type DeviceConfigurationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewDeviceConfigurationsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *DeviceConfigurationsRequestBuilder) Count()(*DeviceConfigurationsCountRequestBuilder) { return NewDeviceConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. +// Get list properties and relationships of the iosUpdateConfiguration objects. // returns a DeviceConfigurationCollectionResponseable 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/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-iosupdateconfiguration-list?view=graph-rest-1.0 func (m *DeviceConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceConfigurationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,12 +99,12 @@ func (m *DeviceConfigurationsRequestBuilder) Get(ctx context.Context, requestCon } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationCollectionResponseable), nil } -// Post create a new iosDeviceFeaturesConfiguration object. +// Post create a new windows10EnterpriseModernAppManagementConfiguration object. // returns a DeviceConfigurationable 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/intune-deviceconfig-iosdevicefeaturesconfiguration-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-windows10enterprisemodernappmanagementconfiguration-create?view=graph-rest-1.0 func (m *DeviceConfigurationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *DeviceConfigurationsRequestBuilder) Post(ctx context.Context, body iadc } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable), nil } -// ToGetRequestInformation list properties and relationships of the windows10EnterpriseModernAppManagementConfiguration objects. +// ToGetRequestInformation list properties and relationships of the iosUpdateConfiguration objects. // returns a *RequestInformation when successful func (m *DeviceConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *DeviceConfigurationsRequestBuilder) ToGetRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new iosDeviceFeaturesConfiguration object. +// ToPostRequestInformation create a new windows10EnterpriseModernAppManagementConfiguration object. // returns a *RequestInformation when successful func (m *DeviceConfigurationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceConfigurationable, requestConfiguration *DeviceConfigurationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go b/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go index 5d0e59b5de..a6ede06c12 100644 --- a/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go +++ b/devicemanagement/device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go @@ -18,7 +18,7 @@ type DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the deviceEnrollmentLimitConfiguration object. +// DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. type DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -83,12 +83,12 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB } return nil } -// Get read properties and relationships of the deviceEnrollmentLimitConfiguration object. +// Get read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. // returns a DeviceEnrollmentConfigurationable 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/intune-onboarding-deviceenrollmentlimitconfiguration-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentplatformrestrictionsconfiguration-get?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -106,12 +106,12 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable), nil } -// Patch update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. +// Patch update the properties of a deviceEnrollmentLimitConfiguration object. // returns a DeviceEnrollmentConfigurationable 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/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentlimitconfiguration-update?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read properties and relationships of the deviceEnrollmentLimitConfiguration object. +// ToGetRequestInformation read properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -159,7 +159,7 @@ func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. +// ToPatchRequestInformation update the properties of a deviceEnrollmentLimitConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_enrollment_configurations_request_builder.go b/devicemanagement/device_enrollment_configurations_request_builder.go index c16d0ef78b..81564fca39 100644 --- a/devicemanagement/device_enrollment_configurations_request_builder.go +++ b/devicemanagement/device_enrollment_configurations_request_builder.go @@ -99,12 +99,12 @@ func (m *DeviceEnrollmentConfigurationsRequestBuilder) Get(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationCollectionResponseable), nil } -// Post create a new deviceEnrollmentLimitConfiguration object. +// Post create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. // returns a DeviceEnrollmentConfigurationable 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/intune-onboarding-deviceenrollmentlimitconfiguration-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-deviceenrollmentwindowshelloforbusinessconfiguration-create?view=graph-rest-1.0 func (m *DeviceEnrollmentConfigurationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *DeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformation(c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new deviceEnrollmentLimitConfiguration object. +// ToPostRequestInformation create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. // returns a *RequestInformation when successful func (m *DeviceEnrollmentConfigurationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceEnrollmentConfigurationable, requestConfiguration *DeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/device_management_request_builder.go b/devicemanagement/device_management_request_builder.go index 23ec9c21d6..5a754fdd37 100644 --- a/devicemanagement/device_management_request_builder.go +++ b/devicemanagement/device_management_request_builder.go @@ -122,7 +122,7 @@ func (m *DeviceManagementRequestBuilder) ExchangeConnectors()(*ExchangeConnector // 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/intune-deviceconfig-devicemanagement-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-raimportcerts-devicemanagement-get?view=graph-rest-1.0 func (m *DeviceManagementRequestBuilder) Get(ctx context.Context, requestConfiguration *DeviceManagementRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -185,7 +185,7 @@ func (m *DeviceManagementRequestBuilder) NotificationMessageTemplates()(*Notific // 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/intune-auditing-devicemanagement-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-deviceconfig-devicemanagement-update?view=graph-rest-1.0 func (m *DeviceManagementRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, requestConfiguration *DeviceManagementRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DeviceManagementable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { diff --git a/devicemanagement/role_definitions_request_builder.go b/devicemanagement/role_definitions_request_builder.go index fb4b0a56ff..ec677498e8 100644 --- a/devicemanagement/role_definitions_request_builder.go +++ b/devicemanagement/role_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type RoleDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RoleDefinitionsRequestBuilderGetQueryParameters list properties and relationships of the roleDefinition objects. +// RoleDefinitionsRequestBuilderGetQueryParameters list properties and relationships of the deviceAndAppManagementRoleDefinition objects. type RoleDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewRoleDefinitionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da func (m *RoleDefinitionsRequestBuilder) Count()(*RoleDefinitionsCountRequestBuilder) { return NewRoleDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list properties and relationships of the roleDefinition objects. +// Get list properties and relationships of the deviceAndAppManagementRoleDefinition objects. // returns a RoleDefinitionCollectionResponseable 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/intune-rbac-roledefinition-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-list?view=graph-rest-1.0 func (m *RoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfiguration *RoleDefinitionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -99,12 +99,12 @@ func (m *RoleDefinitionsRequestBuilder) Get(ctx context.Context, requestConfigur } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionCollectionResponseable), nil } -// Post create a new roleDefinition object. +// Post create a new deviceAndAppManagementRoleDefinition object. // returns a RoleDefinitionable 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/intune-rbac-roledefinition-create?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-create?view=graph-rest-1.0 func (m *RoleDefinitionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, requestConfiguration *RoleDefinitionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *RoleDefinitionsRequestBuilder) Post(ctx context.Context, body iadcd8112 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable), nil } -// ToGetRequestInformation list properties and relationships of the roleDefinition objects. +// ToGetRequestInformation list properties and relationships of the deviceAndAppManagementRoleDefinition objects. // returns a *RequestInformation when successful func (m *RoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RoleDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *RoleDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new roleDefinition object. +// ToPostRequestInformation create a new deviceAndAppManagementRoleDefinition object. // returns a *RequestInformation when successful func (m *RoleDefinitionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RoleDefinitionable, requestConfiguration *RoleDefinitionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/role_definitions_role_definition_item_request_builder.go b/devicemanagement/role_definitions_role_definition_item_request_builder.go index 399b601647..2f8ae2f590 100644 --- a/devicemanagement/role_definitions_role_definition_item_request_builder.go +++ b/devicemanagement/role_definitions_role_definition_item_request_builder.go @@ -54,11 +54,11 @@ func NewRoleDefinitionsRoleDefinitionItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewRoleDefinitionsRoleDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete deletes a roleDefinition. +// Delete deletes a deviceAndAppManagementRoleDefinition. // 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/intune-rbac-roledefinition-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-rbac-deviceandappmanagementroledefinition-delete?view=graph-rest-1.0 func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *RoleDefinitionsRoleDefinitionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -124,7 +124,7 @@ func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) Patch(ctx context.Cont func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) RoleAssignments()(*RoleDefinitionsItemRoleAssignmentsRequestBuilder) { return NewRoleDefinitionsItemRoleAssignmentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation deletes a roleDefinition. +// ToDeleteRequestInformation deletes a deviceAndAppManagementRoleDefinition. // returns a *RequestInformation when successful func (m *RoleDefinitionsRoleDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *RoleDefinitionsRoleDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devices/item_get_member_groups_request_builder.go b/devices/item_get_member_groups_request_builder.go index 96ebd28620..9d6292ccf4 100644 --- a/devices/item_get_member_groups_request_builder.go +++ b/devices/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/directory/deleted_items_item_get_member_groups_request_builder.go b/directory/deleted_items_item_get_member_groups_request_builder.go index c9d6343cbe..da6c23701d 100644 --- a/directory/deleted_items_item_get_member_groups_request_builder.go +++ b/directory/deleted_items_item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewDeletedItemsItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdap urlParams["request-raw-url"] = rawUrl return NewDeletedItemsItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a DeletedItemsItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *DeletedItemsItemGetMemberGroupsRequestBuilder) Post(ctx context.Context } return res.(DeletedItemsItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a DeletedItemsItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *DeletedItemsItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPos } return res.(DeletedItemsItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *DeletedItemsItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedItemsItemGetMemberGroupsPostRequestBodyable, requestConfiguration *DeletedItemsItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/directoryobjects/item_get_member_groups_request_builder.go b/directoryobjects/item_get_member_groups_request_builder.go index dd4aa257f3..671c7ea4bb 100644 --- a/directoryobjects/item_get_member_groups_request_builder.go +++ b/directoryobjects/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/directoryroles/item_get_member_groups_request_builder.go b/directoryroles/item_get_member_groups_request_builder.go index 7da4c1be61..7e4a5d7155 100644 --- a/directoryroles/item_get_member_groups_request_builder.go +++ b/directoryroles/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/directoryroletemplates/item_get_member_groups_request_builder.go b/directoryroletemplates/item_get_member_groups_request_builder.go index 86e6354a9f..8a3829e957 100644 --- a/directoryroletemplates/item_get_member_groups_request_builder.go +++ b/directoryroletemplates/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_names_item_range_request_builder.go b/drives/item_items_item_workbook_names_item_range_request_builder.go index 0d93af4b55..7f6a2e6dec 100644 --- a/drives/item_items_item_workbook_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_names_item_range_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties and relationships of range object. +// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // returns a WorkbookRangeable 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/range-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Cont } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil } -// ToGetRequestInformation retrieve the properties and relationships of range object. +// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_add_request_builder.go b/drives/item_items_item_workbook_tables_add_request_builder.go index b1eb8a65bb..808418034c 100644 --- a/drives/item_items_item_workbook_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_tables_add_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookTablesAddRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post use this API to create a new Table. +// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a WorkbookTableable 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/workbook-post-tables?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil } -// ToPostRequestInformation use this API to create a new Table. +// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go index 7a9eea311b..bfb400e631 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get retrieve the properties and relationships of range object. +// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // returns a WorkbookRangeable 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/range-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/nameditem-range?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ct } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil } -// ToGetRequestInformation retrieve the properties and relationships of range object. +// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go index cfd54936ce..5f903bd102 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_add_request_builder.go @@ -31,12 +31,12 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(urlParams, requestAdapter) } -// Post use this API to create a new Table. +// Post create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a WorkbookTableable 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/workbook-post-tables?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/tablecollection-add?view=graph-rest-1.0 func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil } -// ToPostRequestInformation use this API to create a new Table. +// ToPostRequestInformation create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/education/me_rubrics_education_rubric_item_request_builder.go b/education/me_rubrics_education_rubric_item_request_builder.go index 147804c806..a7e71d4a6d 100644 --- a/education/me_rubrics_education_rubric_item_request_builder.go +++ b/education/me_rubrics_education_rubric_item_request_builder.go @@ -96,7 +96,7 @@ func (m *MeRubricsEducationRubricItemRequestBuilder) Get(ctx context.Context, re } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.EducationRubricable), nil } -// Patch update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. +// Patch update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. // returns a EducationRubricable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -144,7 +144,7 @@ func (m *MeRubricsEducationRubricItemRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it cannot be updated. +// ToPatchRequestInformation update the properties of an educationRubric object. Only teachers can perform this operation. Updating a rubric attached to an assignment (PATCH /education/classes/{class-id}/assignments/{assignment-id}/rubric) is only possible before the assignment is published, and what is updated is actually the original rubric that exists under /education/users/{id}/rubrics. After the assignment is published, an immutable copy of the rubric is made that is attached to that specific assignment. That rubric can be retrieved using GET /education/classes/{class-id}/assignments/{assignment-id}/rubric, but it can't be updated. // returns a *RequestInformation when successful func (m *MeRubricsEducationRubricItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.EducationRubricable, requestConfiguration *MeRubricsEducationRubricItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_add_favorite_request_builder.go b/groups/item_add_favorite_request_builder.go index 4e1b0db3f0..a036f76432 100644 --- a/groups/item_add_favorite_request_builder.go +++ b/groups/item_add_favorite_request_builder.go @@ -30,7 +30,7 @@ func NewItemAddFavoriteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewItemAddFavoriteRequestBuilderInternal(urlParams, requestAdapter) } -// Post add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. +// Post add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *ItemAddFavoriteRequestBuilder) Post(ctx context.Context, requestConfigu } return nil } -// ToPostRequestInformation add the group to the list of the current user's favorite groups. Supported for Microsoft 365 groups only. +// ToPostRequestInformation add the group to the list of the current user's favorite groups. The group shows up in Outlook and Teams favorites. Supported for Microsoft 365 groups only. // returns a *RequestInformation when successful func (m *ItemAddFavoriteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemAddFavoriteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index 3ebc7a8359..292212aabe 100644 --- a/groups/item_conversations_request_builder.go +++ b/groups/item_conversations_request_builder.go @@ -99,12 +99,12 @@ func (m *ItemConversationsRequestBuilder) Get(ctx context.Context, requestConfig } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationCollectionResponseable), nil } -// Post use reply thread or reply post to further post to that conversation. +// Post create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a Conversationable 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/group-post-conversations?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/opentypeextension-post-opentypeextension?view=graph-rest-1.0 func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *ItemConversationsRequestBuilder) ToGetRequestInformation(ctx context.Co requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use reply thread or reply post to further post to that conversation. +// ToPostRequestInformation create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_get_member_groups_request_builder.go b/groups/item_get_member_groups_request_builder.go index e739e962af..4cec583da9 100644 --- a/groups/item_get_member_groups_request_builder.go +++ b/groups/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go deleted file mode 100644 index efd779ec3d..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder provides operations to manage the analytics property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property analytics for groups -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get analytics about the view activities that took place on this site. -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// Patch update the navigation property analytics in groups -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// ToDeleteRequestInformation delete navigation property analytics for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation analytics about the view activities that took place on this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property analytics in groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go deleted file mode 100644 index 0b520c7235..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of column definitions reusable across lists under this site. -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// Post create new navigation property to columns for groups -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the collection of column definitions reusable across lists under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go deleted file mode 100644 index d0f286ddd6..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of content types defined for this site. -// returns a ContentTypeCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable), nil -} -// Post create new navigation property to contentTypes for groups -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToGetRequestInformation the collection of content types defined for this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to contentTypes for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go deleted file mode 100644 index e3b67c8fcd..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go deleted file mode 100644 index 2a47e64790..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder provides operations to manage the drive property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters the default drive (document library) for this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the default drive (document library) for this site. -// returns a Driveable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable), nil -} -// ToGetRequestInformation the default drive (document library) for this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go deleted file mode 100644 index c543c3c65a..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder provides operations to manage the drives property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters the collection of drives (document libraries) under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of drives (document libraries) under this site. -// returns a DriveCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveCollectionResponseable), nil -} -// ToGetRequestInformation the collection of drives (document libraries) under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go deleted file mode 100644 index 0c4dd66ea7..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder provides operations to manage the externalColumns property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters get externalColumns from groups -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get externalColumns from groups -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// ToGetRequestInformation get externalColumns from groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go deleted file mode 100644 index c186347731..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder provides operations to manage the items property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get used to address any item contained in this site. This collection can't be enumerated. -// returns a BaseItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseItemCollectionResponseable), nil -} -// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go deleted file mode 100644 index ae0a9145ab..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go deleted file mode 100644 index 5e98e3c3b1..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder provides operations to manage the lists property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters the collection of lists under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of lists under this site. -// returns a ListCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListCollectionResponseable), nil -} -// Post create new navigation property to lists for groups -// returns a Listable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable), nil -} -// ToGetRequestInformation the collection of lists under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to lists for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go deleted file mode 100644 index 221f9e03f0..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder provides operations to manage the onenote property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters calls the OneNote service for notebook related operations. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property onenote for groups -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get calls the OneNote service for notebook related operations. -// returns a Onenoteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOnenoteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable), nil -} -// Patch update the navigation property onenote in groups -// returns a Onenoteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOnenoteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable), nil -} -// ToDeleteRequestInformation delete navigation property onenote for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation calls the OneNote service for notebook related operations. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property onenote in groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go deleted file mode 100644 index 04c7f31203..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder provides operations to manage the operations property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters the collection of long-running operations on the site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of long-running operations on the site. -// returns a RichLongRunningOperationCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable), nil -} -// Post create new navigation property to operations for groups -// returns a RichLongRunningOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable), nil -} -// ToGetRequestInformation the collection of long-running operations on the site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to operations for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go deleted file mode 100644 index 57bbca1777..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder provides operations to manage the pages property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters the collection of pages in the baseSitePages list in this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of pages in the baseSitePages list in this site. -// returns a BaseSitePageCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseSitePageCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageCollectionResponseable), nil -} -// Post create new navigation property to pages for groups -// returns a BaseSitePageable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseSitePageFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable), nil -} -// ToGetRequestInformation the collection of pages in the baseSitePages list in this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to pages for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go deleted file mode 100644 index d0ef82d7bb..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder provides operations to manage the permissions property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters the permissions associated with the site. Nullable. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the permissions associated with the site. Nullable. -// returns a PermissionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable), nil -} -// Post create new navigation property to permissions for groups -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToGetRequestInformation the permissions associated with the site. Nullable. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to permissions for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_request_builder.go deleted file mode 100644 index 41708b3d44..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder provides operations to call the getByPath method. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Analytics provides operations to manage the analytics property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Analytics()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Columns()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, path1 *string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters), - } - if path1 != nil { - m.BaseRequestBuilder.PathParameters["path1"] = *path1 - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(urlParams, requestAdapter, nil) -} -// ContentTypes provides operations to manage the contentTypes property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ContentTypes()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) CreatedByUser()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Drive provides operations to manage the drive property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Drive()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Drives provides operations to manage the drives property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Drives()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ExternalColumns provides operations to manage the externalColumns property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ExternalColumns()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get invoke function getByPath -// returns a Siteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSiteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable), nil -} -// Items provides operations to manage the items property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Items()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) LastModifiedByUser()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lists provides operations to manage the lists property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Lists()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Onenote provides operations to manage the onenote property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Onenote()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Operations provides operations to manage the operations property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Operations()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pages provides operations to manage the pages property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Pages()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Permissions provides operations to manage the permissions property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Permissions()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sites provides operations to manage the sites property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Sites()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TermStore provides operations to manage the termStore property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) TermStore()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TermStores provides operations to manage the termStores property of the microsoft.graph.site entity. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) TermStores()(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation invoke function getByPath -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go deleted file mode 100644 index eb784f48ae..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder provides operations to manage the sites property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters the collection of the sub-sites under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of the sub-sites under this site. -// returns a SiteCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSiteCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable), nil -} -// ToGetRequestInformation the collection of the sub-sites under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go deleted file mode 100644 index b100b9c6c9..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3 "github.com/microsoftgraph/msgraph-sdk-go/models/termstore" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder provides operations to manage the termStore property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters the default termStore under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property termStore for groups -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the default termStore under this site. -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// Patch update the navigation property termStore in groups -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Patch(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// ToDeleteRequestInformation delete navigation property termStore for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the default termStore under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property termStore in groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go b/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go deleted file mode 100644 index 5c71ff046b..0000000000 --- a/groups/item_sites_item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package groups - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3 "github.com/microsoftgraph/msgraph-sdk-go/models/termstore" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder provides operations to manage the termStores property of the microsoft.graph.site entity. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters the collection of termStores under this site. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters -} -// ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - m := &ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder instantiates a new ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder and sets the default values. -func NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of termStores under this site. -// returns a StoreCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.StoreCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.StoreCollectionResponseable), nil -} -// Post create new navigation property to termStores for groups -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) Post(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// ToGetRequestInformation the collection of termStores under this site. -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to termStores for groups -// returns a *RequestInformation when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) ToPostRequestInformation(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/groups/item_sites_item_get_by_path_with_path_request_builder.go b/groups/item_sites_item_get_by_path_with_path_request_builder.go index 6dffa0ef0a..3d851bba11 100644 --- a/groups/item_sites_item_get_by_path_with_path_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_request_builder.go @@ -104,11 +104,6 @@ func (m *ItemSitesItemGetByPathWithPathRequestBuilder) GetActivitiesByIntervalWi func (m *ItemSitesItemGetByPathWithPathRequestBuilder) GetApplicableContentTypesForListWithListId(listId *string)(*ItemSitesItemGetByPathWithPathGetApplicableContentTypesForListWithListIdRequestBuilder) { return NewItemSitesItemGetByPathWithPathGetApplicableContentTypesForListWithListIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, listId) } -// GetByPathWithPath1 provides operations to call the getByPath method. -// returns a *ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder when successful -func (m *ItemSitesItemGetByPathWithPathRequestBuilder) GetByPathWithPath1(path1 *string)(*ItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - return NewItemSitesItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, path1) -} // Items provides operations to manage the items property of the microsoft.graph.site entity. // returns a *ItemSitesItemGetByPathWithPathItemsRequestBuilder when successful func (m *ItemSitesItemGetByPathWithPathRequestBuilder) Items()(*ItemSitesItemGetByPathWithPathItemsRequestBuilder) { diff --git a/groups/item_team_channels_channel_item_request_builder.go b/groups/item_team_channels_channel_item_request_builder.go index df595d78af..f30ad56717 100644 --- a/groups/item_team_channels_channel_item_request_builder.go +++ b/groups/item_team_channels_channel_item_request_builder.go @@ -41,6 +41,11 @@ type ItemTeamChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemTeamChannelsItemArchiveRequestBuilder when successful +func (m *ItemTeamChannelsChannelItemRequestBuilder) Archive()(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemTeamChannelsItemCompleteMigrationRequestBuilder when successful func (m *ItemTeamChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemTeamChannelsItemCompleteMigrationRequestBuilder) { @@ -195,6 +200,11 @@ func (m *ItemTeamChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ct } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemTeamChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemTeamChannelsChannelItemRequestBuilder) Unarchive()(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemTeamChannelsChannelItemRequestBuilder when successful func (m *ItemTeamChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsChannelItemRequestBuilder) { diff --git a/groups/item_team_channels_get_all_retained_messages_get_response.go b/groups/item_team_channels_get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..2dd51532d4 --- /dev/null +++ b/groups/item_team_channels_get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type ItemTeamChannelsGetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewItemTeamChannelsGetAllRetainedMessagesGetResponse instantiates a new ItemTeamChannelsGetAllRetainedMessagesGetResponse and sets the default values. +func NewItemTeamChannelsGetAllRetainedMessagesGetResponse()(*ItemTeamChannelsGetAllRetainedMessagesGetResponse) { + m := &ItemTeamChannelsGetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemTeamChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsGetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *ItemTeamChannelsGetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsGetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemTeamChannelsGetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsGetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/groups/item_team_channels_get_all_retained_messages_request_builder.go b/groups/item_team_channels_get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..c73b3d7a17 --- /dev/null +++ b/groups/item_team_channels_get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsGetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type ItemTeamChannelsGetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewItemTeamChannelsGetAllRetainedMessagesRequestBuilderInternal instantiates a new ItemTeamChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemTeamChannelsGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) { + m := &ItemTeamChannelsGetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemTeamChannelsGetAllRetainedMessagesRequestBuilder instantiates a new ItemTeamChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemTeamChannelsGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a ItemTeamChannelsGetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemTeamChannelsGetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsGetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a ItemTeamChannelsGetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemTeamChannelsGetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemTeamChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemTeamChannelsGetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemTeamChannelsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_get_all_retained_messages_response.go b/groups/item_team_channels_get_all_retained_messages_response.go new file mode 100644 index 0000000000..aec3d49294 --- /dev/null +++ b/groups/item_team_channels_get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemTeamChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemTeamChannelsGetAllRetainedMessagesResponse struct { + ItemTeamChannelsGetAllRetainedMessagesGetResponse +} +// NewItemTeamChannelsGetAllRetainedMessagesResponse instantiates a new ItemTeamChannelsGetAllRetainedMessagesResponse and sets the default values. +func NewItemTeamChannelsGetAllRetainedMessagesResponse()(*ItemTeamChannelsGetAllRetainedMessagesResponse) { + m := &ItemTeamChannelsGetAllRetainedMessagesResponse{ + ItemTeamChannelsGetAllRetainedMessagesGetResponse: *NewItemTeamChannelsGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateItemTeamChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemTeamChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemTeamChannelsGetAllRetainedMessagesResponseable interface { + ItemTeamChannelsGetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/groups/item_team_channels_item_archive_post_request_body.go b/groups/item_team_channels_item_archive_post_request_body.go new file mode 100644 index 0000000000..af891ccaa3 --- /dev/null +++ b/groups/item_team_channels_item_archive_post_request_body.go @@ -0,0 +1,113 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamChannelsItemArchivePostRequestBody instantiates a new ItemTeamChannelsItemArchivePostRequestBody and sets the default values. +func NewItemTeamChannelsItemArchivePostRequestBody()(*ItemTeamChannelsItemArchivePostRequestBody) { + m := &ItemTeamChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemTeamChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemTeamChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_channels_item_archive_request_builder.go b/groups/item_team_channels_item_archive_request_builder.go new file mode 100644 index 0000000000..042b4339fa --- /dev/null +++ b/groups/item_team_channels_item_archive_request_builder.go @@ -0,0 +1,71 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemArchiveRequestBuilderInternal instantiates a new ItemTeamChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + m := &ItemTeamChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemArchiveRequestBuilder instantiates a new ItemTeamChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemTeamChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemTeamChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemArchiveRequestBuilder when successful +func (m *ItemTeamChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemArchiveRequestBuilder) { + return NewItemTeamChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_item_unarchive_request_builder.go b/groups/item_team_channels_item_unarchive_request_builder.go new file mode 100644 index 0000000000..f236ed1cfc --- /dev/null +++ b/groups/item_team_channels_item_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamChannelsItemUnarchiveRequestBuilderInternal instantiates a new ItemTeamChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + m := &ItemTeamChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemTeamChannelsItemUnarchiveRequestBuilder instantiates a new ItemTeamChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemTeamChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamChannelsItemUnarchiveRequestBuilder) { + return NewItemTeamChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_channels_request_builder.go b/groups/item_team_channels_request_builder.go index 33c6876bb0..174ac39eaf 100644 --- a/groups/item_team_channels_request_builder.go +++ b/groups/item_team_channels_request_builder.go @@ -101,6 +101,11 @@ func (m *ItemTeamChannelsRequestBuilder) Get(ctx context.Context, requestConfigu func (m *ItemTeamChannelsRequestBuilder) GetAllMessages()(*ItemTeamChannelsGetAllMessagesRequestBuilder) { return NewItemTeamChannelsGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *ItemTeamChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemTeamChannelsRequestBuilder) GetAllRetainedMessages()(*ItemTeamChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemTeamChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to channels for groups // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/groups/item_team_primary_channel_archive_post_request_body.go b/groups/item_team_primary_channel_archive_post_request_body.go new file mode 100644 index 0000000000..e5d1b885e7 --- /dev/null +++ b/groups/item_team_primary_channel_archive_post_request_body.go @@ -0,0 +1,113 @@ +package groups + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemTeamPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemTeamPrimaryChannelArchivePostRequestBody instantiates a new ItemTeamPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemTeamPrimaryChannelArchivePostRequestBody()(*ItemTeamPrimaryChannelArchivePostRequestBody) { + m := &ItemTeamPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemTeamPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemTeamPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemTeamPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemTeamPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/groups/item_team_primary_channel_archive_request_builder.go b/groups/item_team_primary_channel_archive_request_builder.go new file mode 100644 index 0000000000..3c02ca47af --- /dev/null +++ b/groups/item_team_primary_channel_archive_request_builder.go @@ -0,0 +1,71 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemTeamPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelArchiveRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelArchiveRequestBuilder instantiates a new ItemTeamPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemTeamPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_team_primary_channel_request_builder.go b/groups/item_team_primary_channel_request_builder.go index 0d2bedb899..ba897cd9cc 100644 --- a/groups/item_team_primary_channel_request_builder.go +++ b/groups/item_team_primary_channel_request_builder.go @@ -41,6 +41,11 @@ type ItemTeamPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemTeamPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelRequestBuilder) Archive()(*ItemTeamPrimaryChannelArchiveRequestBuilder) { + return NewItemTeamPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemTeamPrimaryChannelCompleteMigrationRequestBuilder when successful func (m *ItemTeamPrimaryChannelRequestBuilder) CompleteMigration()(*ItemTeamPrimaryChannelCompleteMigrationRequestBuilder) { @@ -195,6 +200,11 @@ func (m *ItemTeamPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx con } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemTeamPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelRequestBuilder) Unarchive()(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemTeamPrimaryChannelRequestBuilder when successful func (m *ItemTeamPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelRequestBuilder) { diff --git a/groups/item_team_primary_channel_unarchive_request_builder.go b/groups/item_team_primary_channel_unarchive_request_builder.go new file mode 100644 index 0000000000..4ef2d0ae37 --- /dev/null +++ b/groups/item_team_primary_channel_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemTeamPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemTeamPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new ItemTeamPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemTeamPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemTeamPrimaryChannelUnarchiveRequestBuilder instantiates a new ItemTeamPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemTeamPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemTeamPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemTeamPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemTeamPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemTeamPrimaryChannelUnarchiveRequestBuilder) { + return NewItemTeamPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_threads_conversation_thread_item_request_builder.go b/groups/item_threads_conversation_thread_item_request_builder.go index afe7e7d2c6..1a5ca88af1 100644 --- a/groups/item_threads_conversation_thread_item_request_builder.go +++ b/groups/item_threads_conversation_thread_item_request_builder.go @@ -18,7 +18,7 @@ type ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters get a thread object. type ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -58,7 +58,7 @@ func NewItemThreadsConversationThreadItemRequestBuilder(rawUrl string, requestAd // 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/group-delete-thread?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-delete?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,12 +73,12 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// Get get a thread object. // returns a ConversationThreadable 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/conversationthread-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/group-get-thread?view=graph-rest-1.0 func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -140,7 +140,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. +// ToGetRequestInformation get a thread object. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_threads_item_posts_item_extensions_extension_item_request_builder.go b/groups/item_threads_item_posts_item_extensions_extension_item_request_builder.go index f2f9085250..84251bdc43 100644 --- a/groups/item_threads_item_posts_item_extensions_extension_item_request_builder.go +++ b/groups/item_threads_item_posts_item_extensions_extension_item_request_builder.go @@ -93,7 +93,7 @@ func (m *ItemThreadsItemPostsItemExtensionsExtensionItemRequestBuilder) Get(ctx } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Extensionable), nil } -// Patch update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. +// Patch update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -141,7 +141,7 @@ func (m *ItemThreadsItemPostsItemExtensionsExtensionItemRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update an open extension (openTypeExtension object) with the properties in the request body: The data in an extension can be primitive types, or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. +// ToPatchRequestInformation update an open extension (openTypeExtension object) on a supported resource type.- If a property in the request body matches the name of an existing property in the extension, the data in the extension is updated.- Otherwise, that property and its data are added to the extension. The data in an extension can be primitive types or arrays of primitive types. See the table in the Permissions section for the list of resources that support open extensions. // returns a *RequestInformation when successful func (m *ItemThreadsItemPostsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Extensionable, requestConfiguration *ItemThreadsItemPostsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_threads_item_posts_request_builder.go b/groups/item_threads_item_posts_request_builder.go index f92d9b7a91..cfa90f08ca 100644 --- a/groups/item_threads_item_posts_request_builder.go +++ b/groups/item_threads_item_posts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemThreadsItemPostsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemThreadsItemPostsRequestBuilderGetQueryParameters get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. +// ItemThreadsItemPostsRequestBuilderGetQueryParameters get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. type ItemThreadsItemPostsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,12 +69,12 @@ func NewItemThreadsItemPostsRequestBuilder(rawUrl string, requestAdapter i2ae418 func (m *ItemThreadsItemPostsRequestBuilder) Count()(*ItemThreadsItemPostsCountRequestBuilder) { return NewItemThreadsItemPostsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. +// Get get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. // returns a PostCollectionResponseable 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/post-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-list-posts?view=graph-rest-1.0 func (m *ItemThreadsItemPostsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsItemPostsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PostCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -92,7 +92,7 @@ func (m *ItemThreadsItemPostsRequestBuilder) Get(ctx context.Context, requestCon } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PostCollectionResponseable), nil } -// ToGetRequestInformation get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. +// ToGetRequestInformation get the posts of the specified thread. You can specify both the parent conversation and the thread, or,you can specify the thread without referencing the parent conversation. // returns a *RequestInformation when successful func (m *ItemThreadsItemPostsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsItemPostsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groupsettingtemplates/item_get_member_groups_request_builder.go b/groupsettingtemplates/item_get_member_groups_request_builder.go index 6d47f5fd2c..1d1be490d1 100644 --- a/groupsettingtemplates/item_get_member_groups_request_builder.go +++ b/groupsettingtemplates/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/conditional_access_named_locations_named_location_item_request_builder.go b/identity/conditional_access_named_locations_named_location_item_request_builder.go index b7881e943a..2780dc950e 100644 --- a/identity/conditional_access_named_locations_named_location_item_request_builder.go +++ b/identity/conditional_access_named_locations_named_location_item_request_builder.go @@ -18,7 +18,7 @@ type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a countryNamedLocation object. +// ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of a namedLocation object. type ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,11 @@ func NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewConditionalAccessNamedLocationsNamedLocationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an ipNamedLocation object. +// Delete delete a countryNamedLocation object. // 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/ipnamedlocation-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/countrynamedlocation-delete?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,12 +73,12 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Delete( } return nil } -// Get retrieve the properties and relationships of a countryNamedLocation object. +// Get retrieve the properties and relationships of a namedLocation object. // returns a NamedLocationable 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/countrynamedlocation-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-1.0 func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NamedLocationable), nil } -// ToDeleteRequestInformation delete an ipNamedLocation object. +// ToDeleteRequestInformation delete a countryNamedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,7 +130,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of a countryNamedLocation object. +// ToGetRequestInformation retrieve the properties and relationships of a namedLocation object. // returns a *RequestInformation when successful func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go b/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go index 153e629d42..d7eade6877 100644 --- a/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go +++ b/identitygovernance/035dc70034b87a918d74c29c8ef01e0b77d6b98ba10a3145d6df9ad09f77c65b.go @@ -96,12 +96,12 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable), nil } -// Patch update the properties of an accessPackageAssignmentWorkflowExtension object. +// Patch update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // returns a CustomCalloutExtensionable 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/accesspackageassignmentworkflowextension-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentrequestworkflowextension-update?view=graph-rest-1.0 func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -144,7 +144,7 @@ func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutE requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an accessPackageAssignmentWorkflowExtension object. +// ToPatchRequestInformation update the properties of an accessPackageAssignmentRequestWorkflowExtension object. // returns a *RequestInformation when successful func (m *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CustomCalloutExtensionable, requestConfiguration *EntitlementManagementCatalogsItemCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/entitlement_management_assignment_policies_access_package_assignment_policy_item_request_builder.go b/identitygovernance/entitlement_management_assignment_policies_access_package_assignment_policy_item_request_builder.go index 4cdf197471..82710f7acb 100644 --- a/identitygovernance/entitlement_management_assignment_policies_access_package_assignment_policy_item_request_builder.go +++ b/identitygovernance/entitlement_management_assignment_policies_access_package_assignment_policy_item_request_builder.go @@ -111,12 +111,9 @@ func (m *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyIte } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AccessPackageAssignmentPolicyable), nil } -// Put update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. +// Put update the navigation property assignmentPolicies in identityGovernance // returns a AccessPackageAssignmentPolicyable 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/accesspackageassignmentpolicy-update?view=graph-rest-1.0 func (m *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyItemRequestBuilder) Put(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AccessPackageAssignmentPolicyable, requestConfiguration *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AccessPackageAssignmentPolicyable, error) { requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -164,7 +161,7 @@ func (m *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyIte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPutRequestInformation update an existing accessPackageAssignmentPolicy object to change one or more of its properties, such as the display name or description. +// ToPutRequestInformation update the navigation property assignmentPolicies in identityGovernance // returns a *RequestInformation when successful func (m *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AccessPackageAssignmentPolicyable, requestConfiguration *EntitlementManagementAssignmentPoliciesAccessPackageAssignmentPolicyItemRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/kiota-lock.json b/kiota-lock.json index 41d7faf604..a6b1129739 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "076850FCB66C23D2BE297DE9D5198EF09703FD37992363151AF030538E680801532E4949126F0218FED177E25A07EBD4A060507B3F42A4569AB8CFA44E3BFBC0", + "descriptionHash": "122998252440DBBC37C256F8E91E520FBD4730962CD0399AC707E083ADE3387C60354D320786801E3A8C09A1F6C515B1999CE903C833CCCC0A28CC23B2D9564E", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.17.0", diff --git a/models/access_package.go b/models/access_package.go index bc766a157a..bced8b5379 100644 --- a/models/access_package.go +++ b/models/access_package.go @@ -262,7 +262,7 @@ func (m *AccessPackage) GetIncompatibleGroups()([]Groupable) { } return nil } -// GetIsHidden gets the isHidden property value. Whether the access package is hidden from the requestor. +// GetIsHidden gets the isHidden property value. Indicates whether the access package is hidden from the requestor. // returns a *bool when successful func (m *AccessPackage) GetIsHidden()(*bool) { val, err := m.GetBackingStore().Get("isHidden") @@ -458,7 +458,7 @@ func (m *AccessPackage) SetIncompatibleGroups(value []Groupable)() { panic(err) } } -// SetIsHidden sets the isHidden property value. Whether the access package is hidden from the requestor. +// SetIsHidden sets the isHidden property value. Indicates whether the access package is hidden from the requestor. func (m *AccessPackage) SetIsHidden(value *bool)() { err := m.GetBackingStore().Set("isHidden", value) if err != nil { diff --git a/models/app_management_application_configuration.go b/models/app_management_application_configuration.go new file mode 100644 index 0000000000..d48c4290fc --- /dev/null +++ b/models/app_management_application_configuration.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AppManagementApplicationConfiguration struct { + AppManagementConfiguration +} +// NewAppManagementApplicationConfiguration instantiates a new AppManagementApplicationConfiguration and sets the default values. +func NewAppManagementApplicationConfiguration()(*AppManagementApplicationConfiguration) { + m := &AppManagementApplicationConfiguration{ + AppManagementConfiguration: *NewAppManagementConfiguration(), + } + odataTypeValue := "#microsoft.graph.appManagementApplicationConfiguration" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAppManagementApplicationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAppManagementApplicationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppManagementApplicationConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AppManagementApplicationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AppManagementConfiguration.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AppManagementApplicationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AppManagementConfiguration.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AppManagementApplicationConfigurationable interface { + AppManagementConfigurationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/app_management_configuration.go b/models/app_management_configuration.go index a7c209911e..bed8067b2d 100644 --- a/models/app_management_configuration.go +++ b/models/app_management_configuration.go @@ -20,6 +20,28 @@ func NewAppManagementConfiguration()(*AppManagementConfiguration) { // CreateAppManagementConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateAppManagementConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.appManagementApplicationConfiguration": + return NewAppManagementApplicationConfiguration(), nil + case "#microsoft.graph.appManagementServicePrincipalConfiguration": + return NewAppManagementServicePrincipalConfiguration(), nil + case "#microsoft.graph.customAppManagementConfiguration": + return NewCustomAppManagementConfiguration(), nil + } + } + } + } return NewAppManagementConfiguration(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/models/app_management_policy.go b/models/app_management_policy.go index 3a98849dd9..2bea17403f 100644 --- a/models/app_management_policy.go +++ b/models/app_management_policy.go @@ -64,12 +64,12 @@ func (m *AppManagementPolicy) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["restrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAppManagementConfigurationFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateCustomAppManagementConfigurationFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetRestrictions(val.(AppManagementConfigurationable)) + m.SetRestrictions(val.(CustomAppManagementConfigurationable)) } return nil } @@ -88,14 +88,14 @@ func (m *AppManagementPolicy) GetIsEnabled()(*bool) { return nil } // GetRestrictions gets the restrictions property value. Restrictions that apply to an application or service principal object. -// returns a AppManagementConfigurationable when successful -func (m *AppManagementPolicy) GetRestrictions()(AppManagementConfigurationable) { +// returns a CustomAppManagementConfigurationable when successful +func (m *AppManagementPolicy) GetRestrictions()(CustomAppManagementConfigurationable) { val, err := m.GetBackingStore().Get("restrictions") if err != nil { panic(err) } if val != nil { - return val.(AppManagementConfigurationable) + return val.(CustomAppManagementConfigurationable) } return nil } @@ -146,7 +146,7 @@ func (m *AppManagementPolicy) SetIsEnabled(value *bool)() { } } // SetRestrictions sets the restrictions property value. Restrictions that apply to an application or service principal object. -func (m *AppManagementPolicy) SetRestrictions(value AppManagementConfigurationable)() { +func (m *AppManagementPolicy) SetRestrictions(value CustomAppManagementConfigurationable)() { err := m.GetBackingStore().Set("restrictions", value) if err != nil { panic(err) @@ -157,8 +157,8 @@ type AppManagementPolicyable interface { PolicyBaseable GetAppliesTo()([]DirectoryObjectable) GetIsEnabled()(*bool) - GetRestrictions()(AppManagementConfigurationable) + GetRestrictions()(CustomAppManagementConfigurationable) SetAppliesTo(value []DirectoryObjectable)() SetIsEnabled(value *bool)() - SetRestrictions(value AppManagementConfigurationable)() + SetRestrictions(value CustomAppManagementConfigurationable)() } diff --git a/models/app_management_service_principal_configuration.go b/models/app_management_service_principal_configuration.go new file mode 100644 index 0000000000..3cff69cbef --- /dev/null +++ b/models/app_management_service_principal_configuration.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type AppManagementServicePrincipalConfiguration struct { + AppManagementConfiguration +} +// NewAppManagementServicePrincipalConfiguration instantiates a new AppManagementServicePrincipalConfiguration and sets the default values. +func NewAppManagementServicePrincipalConfiguration()(*AppManagementServicePrincipalConfiguration) { + m := &AppManagementServicePrincipalConfiguration{ + AppManagementConfiguration: *NewAppManagementConfiguration(), + } + odataTypeValue := "#microsoft.graph.appManagementServicePrincipalConfiguration" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateAppManagementServicePrincipalConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAppManagementServicePrincipalConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAppManagementServicePrincipalConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AppManagementServicePrincipalConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AppManagementConfiguration.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *AppManagementServicePrincipalConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AppManagementConfiguration.Serialize(writer) + if err != nil { + return err + } + return nil +} +type AppManagementServicePrincipalConfigurationable interface { + AppManagementConfigurationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/application.go b/models/application.go index 6396a30bbd..2464d0d406 100644 --- a/models/application.go +++ b/models/application.go @@ -485,6 +485,16 @@ func (m *Application) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 } return nil } + res["nativeAuthenticationApisEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseNativeAuthenticationApisEnabled) + if err != nil { + return err + } + if val != nil { + m.SetNativeAuthenticationApisEnabled(val.(*NativeAuthenticationApisEnabled)) + } + return nil + } res["notes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -849,6 +859,18 @@ func (m *Application) GetLogo()([]byte) { } return nil } +// GetNativeAuthenticationApisEnabled gets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. +// returns a *NativeAuthenticationApisEnabled when successful +func (m *Application) GetNativeAuthenticationApisEnabled()(*NativeAuthenticationApisEnabled) { + val, err := m.GetBackingStore().Get("nativeAuthenticationApisEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*NativeAuthenticationApisEnabled) + } + return nil +} // GetNotes gets the notes property value. Notes relevant for the management of the application. // returns a *string when successful func (m *Application) GetNotes()(*string) { @@ -1311,6 +1333,13 @@ func (m *Application) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6 return err } } + if m.GetNativeAuthenticationApisEnabled() != nil { + cast := (*m.GetNativeAuthenticationApisEnabled()).String() + err = writer.WriteStringValue("nativeAuthenticationApisEnabled", &cast) + if err != nil { + return err + } + } { err = writer.WriteStringValue("notes", m.GetNotes()) if err != nil { @@ -1642,6 +1671,13 @@ func (m *Application) SetLogo(value []byte)() { panic(err) } } +// SetNativeAuthenticationApisEnabled sets the nativeAuthenticationApisEnabled property value. Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. +func (m *Application) SetNativeAuthenticationApisEnabled(value *NativeAuthenticationApisEnabled)() { + err := m.GetBackingStore().Set("nativeAuthenticationApisEnabled", value) + if err != nil { + panic(err) + } +} // SetNotes sets the notes property value. Notes relevant for the management of the application. func (m *Application) SetNotes(value *string)() { err := m.GetBackingStore().Set("notes", value) @@ -1829,6 +1865,7 @@ type Applicationable interface { GetIsFallbackPublicClient()(*bool) GetKeyCredentials()([]KeyCredentialable) GetLogo()([]byte) + GetNativeAuthenticationApisEnabled()(*NativeAuthenticationApisEnabled) GetNotes()(*string) GetOauth2RequirePostResponse()(*bool) GetOptionalClaims()(OptionalClaimsable) @@ -1875,6 +1912,7 @@ type Applicationable interface { SetIsFallbackPublicClient(value *bool)() SetKeyCredentials(value []KeyCredentialable)() SetLogo(value []byte)() + SetNativeAuthenticationApisEnabled(value *NativeAuthenticationApisEnabled)() SetNotes(value *string)() SetOauth2RequirePostResponse(value *bool)() SetOptionalClaims(value OptionalClaimsable)() diff --git a/models/assigned_license.go b/models/assigned_license.go index c734fb87ed..2ad21205f0 100644 --- a/models/assigned_license.go +++ b/models/assigned_license.go @@ -41,7 +41,7 @@ func (m *AssignedLicense) GetAdditionalData()(map[string]any) { func (m *AssignedLicense) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisabledPlans gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. +// GetDisabledPlans gets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. // returns a []UUID when successful func (m *AssignedLicense) GetDisabledPlans()([]i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("disabledPlans") @@ -107,7 +107,7 @@ func (m *AssignedLicense) GetOdataType()(*string) { } return nil } -// GetSkuId gets the skuId property value. The unique identifier for the SKU. +// GetSkuId gets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. // returns a *UUID when successful func (m *AssignedLicense) GetSkuId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("skuId") @@ -158,7 +158,7 @@ func (m *AssignedLicense) SetAdditionalData(value map[string]any)() { func (m *AssignedLicense) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisabledPlans sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. +// SetDisabledPlans sets the disabledPlans property value. A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription. func (m *AssignedLicense) SetDisabledPlans(value []i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("disabledPlans", value) if err != nil { @@ -172,7 +172,7 @@ func (m *AssignedLicense) SetOdataType(value *string)() { panic(err) } } -// SetSkuId sets the skuId property value. The unique identifier for the SKU. +// SetSkuId sets the skuId property value. The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription. func (m *AssignedLicense) SetSkuId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("skuId", value) if err != nil { diff --git a/models/assignment_type.go b/models/assignment_type.go index fd87e63747..ae3a77cd80 100644 --- a/models/assignment_type.go +++ b/models/assignment_type.go @@ -5,10 +5,11 @@ const ( REQUIRED_ASSIGNMENTTYPE AssignmentType = iota RECOMMENDED_ASSIGNMENTTYPE UNKNOWNFUTUREVALUE_ASSIGNMENTTYPE + PEERRECOMMENDED_ASSIGNMENTTYPE ) func (i AssignmentType) String() string { - return []string{"required", "recommended", "unknownFutureValue"}[i] + return []string{"required", "recommended", "unknownFutureValue", "peerRecommended"}[i] } func ParseAssignmentType(v string) (any, error) { result := REQUIRED_ASSIGNMENTTYPE @@ -19,6 +20,8 @@ func ParseAssignmentType(v string) (any, error) { result = RECOMMENDED_ASSIGNMENTTYPE case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ASSIGNMENTTYPE + case "peerRecommended": + result = PEERRECOMMENDED_ASSIGNMENTTYPE default: return nil, nil } diff --git a/models/authentication.go b/models/authentication.go index 577a24c4f3..961aa8929b 100644 --- a/models/authentication.go +++ b/models/authentication.go @@ -233,7 +233,7 @@ func (m *Authentication) GetMicrosoftAuthenticatorMethods()([]MicrosoftAuthentic } return nil } -// GetOperations gets the operations property value. Represents the status of a long-running operation. +// GetOperations gets the operations property value. Represents the status of a long-running operation, such as a password reset operation. // returns a []LongRunningOperationable when successful func (m *Authentication) GetOperations()([]LongRunningOperationable) { val, err := m.GetBackingStore().Get("operations") @@ -461,7 +461,7 @@ func (m *Authentication) SetMicrosoftAuthenticatorMethods(value []MicrosoftAuthe panic(err) } } -// SetOperations sets the operations property value. Represents the status of a long-running operation. +// SetOperations sets the operations property value. Represents the status of a long-running operation, such as a password reset operation. func (m *Authentication) SetOperations(value []LongRunningOperationable)() { err := m.GetBackingStore().Set("operations", value) if err != nil { diff --git a/models/booking_appointment.go b/models/booking_appointment.go index 5301e4e061..07ffcc8f5a 100644 --- a/models/booking_appointment.go +++ b/models/booking_appointment.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -44,6 +45,30 @@ func (m *BookingAppointment) GetAnonymousJoinWebUrl()(*string) { } return nil } +// GetAppointmentLabel gets the appointmentLabel property value. Custom label that can be stamped on this appointment by users. +// returns a *string when successful +func (m *BookingAppointment) GetAppointmentLabel()(*string) { + val, err := m.GetBackingStore().Get("appointmentLabel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingAppointment) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetCustomerEmailAddress gets the customerEmailAddress property value. The customerEmailAddress property // returns a *string when successful func (m *BookingAppointment) GetCustomerEmailAddress()(*string) { @@ -164,6 +189,26 @@ func (m *BookingAppointment) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["appointmentLabel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetAppointmentLabel(val) + } + return nil + } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["customerEmailAddress"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -260,6 +305,16 @@ func (m *BookingAppointment) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["isCustomerAllowedToManageBooking"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCustomerAllowedToManageBooking(val) + } + return nil + } res["isLocationOnline"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -280,6 +335,16 @@ func (m *BookingAppointment) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } res["maximumAttendeesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -456,6 +521,18 @@ func (m *BookingAppointment) GetFilledAttendeesCount()(*int32) { } return nil } +// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// returns a *bool when successful +func (m *BookingAppointment) GetIsCustomerAllowedToManageBooking()(*bool) { + val, err := m.GetBackingStore().Get("isCustomerAllowedToManageBooking") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsLocationOnline gets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. // returns a *bool when successful func (m *BookingAppointment) GetIsLocationOnline()(*bool) { @@ -480,6 +557,18 @@ func (m *BookingAppointment) GetJoinWebUrl()(*string) { } return nil } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingAppointment) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetMaximumAttendeesCount gets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. // returns a *int32 when successful func (m *BookingAppointment) GetMaximumAttendeesCount()(*int32) { @@ -678,6 +767,18 @@ func (m *BookingAppointment) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteStringValue("appointmentLabel", m.GetAppointmentLabel()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("customerEmailAddress", m.GetCustomerEmailAddress()) if err != nil { @@ -726,6 +827,12 @@ func (m *BookingAppointment) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteBoolValue("isCustomerAllowedToManageBooking", m.GetIsCustomerAllowedToManageBooking()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isLocationOnline", m.GetIsLocationOnline()) if err != nil { @@ -738,6 +845,12 @@ func (m *BookingAppointment) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("maximumAttendeesCount", m.GetMaximumAttendeesCount()) if err != nil { @@ -851,6 +964,20 @@ func (m *BookingAppointment) SetAnonymousJoinWebUrl(value *string)() { panic(err) } } +// SetAppointmentLabel sets the appointmentLabel property value. Custom label that can be stamped on this appointment by users. +func (m *BookingAppointment) SetAppointmentLabel(value *string)() { + err := m.GetBackingStore().Set("appointmentLabel", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingAppointment) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetCustomerEmailAddress sets the customerEmailAddress property value. The customerEmailAddress property func (m *BookingAppointment) SetCustomerEmailAddress(value *string)() { err := m.GetBackingStore().Set("customerEmailAddress", value) @@ -914,6 +1041,13 @@ func (m *BookingAppointment) SetFilledAttendeesCount(value *int32)() { panic(err) } } +// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +func (m *BookingAppointment) SetIsCustomerAllowedToManageBooking(value *bool)() { + err := m.GetBackingStore().Set("isCustomerAllowedToManageBooking", value) + if err != nil { + panic(err) + } +} // SetIsLocationOnline sets the isLocationOnline property value. If true, indicates that the appointment will be held online. Default value is false. func (m *BookingAppointment) SetIsLocationOnline(value *bool)() { err := m.GetBackingStore().Set("isLocationOnline", value) @@ -928,6 +1062,13 @@ func (m *BookingAppointment) SetJoinWebUrl(value *string)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingAppointment) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} // SetMaximumAttendeesCount sets the maximumAttendeesCount property value. The maximum number of customers allowed in an appointment. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. func (m *BookingAppointment) SetMaximumAttendeesCount(value *int32)() { err := m.GetBackingStore().Set("maximumAttendeesCount", value) @@ -1038,6 +1179,8 @@ type BookingAppointmentable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdditionalInformation()(*string) GetAnonymousJoinWebUrl()(*string) + GetAppointmentLabel()(*string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCustomerEmailAddress()(*string) GetCustomerName()(*string) GetCustomerNotes()(*string) @@ -1047,8 +1190,10 @@ type BookingAppointmentable interface { GetDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetEndDateTime()(DateTimeTimeZoneable) GetFilledAttendeesCount()(*int32) + GetIsCustomerAllowedToManageBooking()(*bool) GetIsLocationOnline()(*bool) GetJoinWebUrl()(*string) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMaximumAttendeesCount()(*int32) GetOptOutOfCustomerEmail()(*bool) GetPostBuffer()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) @@ -1066,6 +1211,8 @@ type BookingAppointmentable interface { GetStartDateTime()(DateTimeTimeZoneable) SetAdditionalInformation(value *string)() SetAnonymousJoinWebUrl(value *string)() + SetAppointmentLabel(value *string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCustomerEmailAddress(value *string)() SetCustomerName(value *string)() SetCustomerNotes(value *string)() @@ -1075,8 +1222,10 @@ type BookingAppointmentable interface { SetDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetEndDateTime(value DateTimeTimeZoneable)() SetFilledAttendeesCount(value *int32)() + SetIsCustomerAllowedToManageBooking(value *bool)() SetIsLocationOnline(value *bool)() SetJoinWebUrl(value *string)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMaximumAttendeesCount(value *int32)() SetOptOutOfCustomerEmail(value *bool)() SetPostBuffer(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() diff --git a/models/booking_business.go b/models/booking_business.go index ffcf77212a..73c4f03c71 100644 --- a/models/booking_business.go +++ b/models/booking_business.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -44,6 +45,18 @@ func (m *BookingBusiness) GetAppointments()([]BookingAppointmentable) { } return nil } +// GetBookingPageSettings gets the bookingPageSettings property value. The bookingPageSettings property +// returns a BookingPageSettingsable when successful +func (m *BookingBusiness) GetBookingPageSettings()(BookingPageSettingsable) { + val, err := m.GetBackingStore().Get("bookingPageSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(BookingPageSettingsable) + } + return nil +} // GetBusinessHours gets the businessHours property value. The hours of operation for the business. // returns a []BookingWorkHoursable when successful func (m *BookingBusiness) GetBusinessHours()([]BookingWorkHoursable) { @@ -80,6 +93,18 @@ func (m *BookingBusiness) GetCalendarView()([]BookingAppointmentable) { } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingBusiness) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetCustomers gets the customers property value. All the customers of this business. Read-only. Nullable. // returns a []BookingCustomerBaseable when successful func (m *BookingBusiness) GetCustomers()([]BookingCustomerBaseable) { @@ -170,6 +195,16 @@ func (m *BookingBusiness) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["bookingPageSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateBookingPageSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBookingPageSettings(val.(BookingPageSettingsable)) + } + return nil + } res["businessHours"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateBookingWorkHoursFromDiscriminatorValue) if err != nil { @@ -212,6 +247,16 @@ func (m *BookingBusiness) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["customers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateBookingCustomerBaseFromDiscriminatorValue) if err != nil { @@ -294,6 +339,16 @@ func (m *BookingBusiness) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } res["phone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -392,6 +447,18 @@ func (m *BookingBusiness) GetLanguageTag()(*string) { } return nil } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingBusiness) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetPhone gets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. // returns a *string when successful func (m *BookingBusiness) GetPhone()(*string) { @@ -488,6 +555,12 @@ func (m *BookingBusiness) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteObjectValue("bookingPageSettings", m.GetBookingPageSettings()) + if err != nil { + return err + } + } if m.GetBusinessHours() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBusinessHours())) for i, v := range m.GetBusinessHours() { @@ -518,6 +591,12 @@ func (m *BookingBusiness) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } if m.GetCustomers() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomers())) for i, v := range m.GetCustomers() { @@ -566,6 +645,12 @@ func (m *BookingBusiness) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("phone", m.GetPhone()) if err != nil { @@ -624,6 +709,13 @@ func (m *BookingBusiness) SetAppointments(value []BookingAppointmentable)() { panic(err) } } +// SetBookingPageSettings sets the bookingPageSettings property value. The bookingPageSettings property +func (m *BookingBusiness) SetBookingPageSettings(value BookingPageSettingsable)() { + err := m.GetBackingStore().Set("bookingPageSettings", value) + if err != nil { + panic(err) + } +} // SetBusinessHours sets the businessHours property value. The hours of operation for the business. func (m *BookingBusiness) SetBusinessHours(value []BookingWorkHoursable)() { err := m.GetBackingStore().Set("businessHours", value) @@ -645,6 +737,13 @@ func (m *BookingBusiness) SetCalendarView(value []BookingAppointmentable)() { panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingBusiness) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetCustomers sets the customers property value. All the customers of this business. Read-only. Nullable. func (m *BookingBusiness) SetCustomers(value []BookingCustomerBaseable)() { err := m.GetBackingStore().Set("customers", value) @@ -694,6 +793,13 @@ func (m *BookingBusiness) SetLanguageTag(value *string)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingBusiness) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} // SetPhone sets the phone property value. The telephone number for the business. The phone property, together with address and webSiteUrl, appear in the footer of a business scheduling page. func (m *BookingBusiness) SetPhone(value *string)() { err := m.GetBackingStore().Set("phone", value) @@ -741,9 +847,11 @@ type BookingBusinessable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAddress()(PhysicalAddressable) GetAppointments()([]BookingAppointmentable) + GetBookingPageSettings()(BookingPageSettingsable) GetBusinessHours()([]BookingWorkHoursable) GetBusinessType()(*string) GetCalendarView()([]BookingAppointmentable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCustomers()([]BookingCustomerBaseable) GetCustomQuestions()([]BookingCustomQuestionable) GetDefaultCurrencyIso()(*string) @@ -751,6 +859,7 @@ type BookingBusinessable interface { GetEmail()(*string) GetIsPublished()(*bool) GetLanguageTag()(*string) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPhone()(*string) GetPublicUrl()(*string) GetSchedulingPolicy()(BookingSchedulingPolicyable) @@ -759,9 +868,11 @@ type BookingBusinessable interface { GetWebSiteUrl()(*string) SetAddress(value PhysicalAddressable)() SetAppointments(value []BookingAppointmentable)() + SetBookingPageSettings(value BookingPageSettingsable)() SetBusinessHours(value []BookingWorkHoursable)() SetBusinessType(value *string)() SetCalendarView(value []BookingAppointmentable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCustomers(value []BookingCustomerBaseable)() SetCustomQuestions(value []BookingCustomQuestionable)() SetDefaultCurrencyIso(value *string)() @@ -769,6 +880,7 @@ type BookingBusinessable interface { SetEmail(value *string)() SetIsPublished(value *bool)() SetLanguageTag(value *string)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPhone(value *string)() SetPublicUrl(value *string)() SetSchedulingPolicy(value BookingSchedulingPolicyable)() diff --git a/models/booking_custom_question.go b/models/booking_custom_question.go index 250dea66c7..890127fee5 100644 --- a/models/booking_custom_question.go +++ b/models/booking_custom_question.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -44,6 +45,18 @@ func (m *BookingCustomQuestion) GetAnswerOptions()([]string) { } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingCustomQuestion) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetDisplayName gets the displayName property value. The question. // returns a *string when successful func (m *BookingCustomQuestion) GetDisplayName()(*string) { @@ -86,6 +99,16 @@ func (m *BookingCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -96,8 +119,30 @@ func (m *BookingCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } return res } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingCustomQuestion) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // Serialize serializes information the current object func (m *BookingCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -117,12 +162,24 @@ func (m *BookingCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487e return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } return nil } // SetAnswerInputType sets the answerInputType property value. The expected answer type. The possible values are: text, radioButton, unknownFutureValue. @@ -139,6 +196,13 @@ func (m *BookingCustomQuestion) SetAnswerOptions(value []string)() { panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingCustomQuestion) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The question. func (m *BookingCustomQuestion) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -146,13 +210,24 @@ func (m *BookingCustomQuestion) SetDisplayName(value *string)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingCustomQuestion) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} type BookingCustomQuestionable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAnswerInputType()(*AnswerInputType) GetAnswerOptions()([]string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) SetAnswerInputType(value *AnswerInputType)() SetAnswerOptions(value []string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() } diff --git a/models/booking_customer.go b/models/booking_customer.go index 9f0f6b595b..66a6a1cf2e 100644 --- a/models/booking_customer.go +++ b/models/booking_customer.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -34,6 +35,18 @@ func (m *BookingCustomer) GetAddresses()([]PhysicalAddressable) { } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingCustomer) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetDisplayName gets the displayName property value. The name of the customer. // returns a *string when successful func (m *BookingCustomer) GetDisplayName()(*string) { @@ -78,6 +91,16 @@ func (m *BookingCustomer) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -98,6 +121,16 @@ func (m *BookingCustomer) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } res["phones"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreatePhoneFromDiscriminatorValue) if err != nil { @@ -116,6 +149,18 @@ func (m *BookingCustomer) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingCustomer) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetPhones gets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. // returns a []Phoneable when successful func (m *BookingCustomer) GetPhones()([]Phoneable) { @@ -146,6 +191,12 @@ func (m *BookingCustomer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -158,6 +209,12 @@ func (m *BookingCustomer) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } if m.GetPhones() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPhones())) for i, v := range m.GetPhones() { @@ -179,6 +236,13 @@ func (m *BookingCustomer) SetAddresses(value []PhysicalAddressable)() { panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingCustomer) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The name of the customer. func (m *BookingCustomer) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -193,6 +257,13 @@ func (m *BookingCustomer) SetEmailAddress(value *string)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingCustomer) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} // SetPhones sets the phones property value. Phone numbers associated with the customer, including home, business and mobile numbers. func (m *BookingCustomer) SetPhones(value []Phoneable)() { err := m.GetBackingStore().Set("phones", value) @@ -204,11 +275,15 @@ type BookingCustomerable interface { BookingCustomerBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAddresses()([]PhysicalAddressable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetEmailAddress()(*string) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetPhones()([]Phoneable) SetAddresses(value []PhysicalAddressable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetEmailAddress(value *string)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetPhones(value []Phoneable)() } diff --git a/models/booking_page_access_control.go b/models/booking_page_access_control.go new file mode 100644 index 0000000000..bf9c474c97 --- /dev/null +++ b/models/booking_page_access_control.go @@ -0,0 +1,36 @@ +package models +type BookingPageAccessControl int + +const ( + UNRESTRICTED_BOOKINGPAGEACCESSCONTROL BookingPageAccessControl = iota + RESTRICTEDTOORGANIZATION_BOOKINGPAGEACCESSCONTROL + UNKNOWNFUTUREVALUE_BOOKINGPAGEACCESSCONTROL +) + +func (i BookingPageAccessControl) String() string { + return []string{"unrestricted", "restrictedToOrganization", "unknownFutureValue"}[i] +} +func ParseBookingPageAccessControl(v string) (any, error) { + result := UNRESTRICTED_BOOKINGPAGEACCESSCONTROL + switch v { + case "unrestricted": + result = UNRESTRICTED_BOOKINGPAGEACCESSCONTROL + case "restrictedToOrganization": + result = RESTRICTEDTOORGANIZATION_BOOKINGPAGEACCESSCONTROL + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_BOOKINGPAGEACCESSCONTROL + default: + return nil, nil + } + return &result, nil +} +func SerializeBookingPageAccessControl(values []BookingPageAccessControl) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i BookingPageAccessControl) isMultiValue() bool { + return false +} diff --git a/models/booking_page_settings.go b/models/booking_page_settings.go new file mode 100644 index 0000000000..e89a77eef1 --- /dev/null +++ b/models/booking_page_settings.go @@ -0,0 +1,521 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type BookingPageSettings struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewBookingPageSettings instantiates a new BookingPageSettings and sets the default values. +func NewBookingPageSettings()(*BookingPageSettings) { + m := &BookingPageSettings{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateBookingPageSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateBookingPageSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewBookingPageSettings(), nil +} +// GetAccessControl gets the accessControl property value. The accessControl property +// returns a *BookingPageAccessControl when successful +func (m *BookingPageSettings) GetAccessControl()(*BookingPageAccessControl) { + val, err := m.GetBackingStore().Get("accessControl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*BookingPageAccessControl) + } + return nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *BookingPageSettings) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *BookingPageSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBookingPageColorCode gets the bookingPageColorCode property value. Custom color for bookings page. Value should be in Hex format. Example: `#123456`. +// returns a *string when successful +func (m *BookingPageSettings) GetBookingPageColorCode()(*string) { + val, err := m.GetBackingStore().Get("bookingPageColorCode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetBusinessTimeZone gets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see [dateTimeTimeZone](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-beta). +// returns a *string when successful +func (m *BookingPageSettings) GetBusinessTimeZone()(*string) { + val, err := m.GetBackingStore().Get("businessTimeZone") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCustomerConsentMessage gets the customerConsentMessage property value. Customer consent message that is displayed in the Booking page. +// returns a *string when successful +func (m *BookingPageSettings) GetCustomerConsentMessage()(*string) { + val, err := m.GetBackingStore().Get("customerConsentMessage") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetEnforceOneTimePassword gets the enforceOneTimePassword property value. Enforcing One Time Password (OTP) during appointment creation. +// returns a *bool when successful +func (m *BookingPageSettings) GetEnforceOneTimePassword()(*bool) { + val, err := m.GetBackingStore().Get("enforceOneTimePassword") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *BookingPageSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["accessControl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseBookingPageAccessControl) + if err != nil { + return err + } + if val != nil { + m.SetAccessControl(val.(*BookingPageAccessControl)) + } + return nil + } + res["bookingPageColorCode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBookingPageColorCode(val) + } + return nil + } + res["businessTimeZone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBusinessTimeZone(val) + } + return nil + } + res["customerConsentMessage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCustomerConsentMessage(val) + } + return nil + } + res["enforceOneTimePassword"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetEnforceOneTimePassword(val) + } + return nil + } + res["isBusinessLogoDisplayEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsBusinessLogoDisplayEnabled(val) + } + return nil + } + res["isCustomerConsentEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCustomerConsentEnabled(val) + } + return nil + } + res["isSearchEngineIndexabilityDisabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsSearchEngineIndexabilityDisabled(val) + } + return nil + } + res["isTimeSlotTimeZoneSetToBusinessTimeZone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsTimeSlotTimeZoneSetToBusinessTimeZone(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["privacyPolicyWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPrivacyPolicyWebUrl(val) + } + return nil + } + res["termsAndConditionsWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTermsAndConditionsWebUrl(val) + } + return nil + } + return res +} +// GetIsBusinessLogoDisplayEnabled gets the isBusinessLogoDisplayEnabled property value. Enable display of business logo display on the Bookings page. +// returns a *bool when successful +func (m *BookingPageSettings) GetIsBusinessLogoDisplayEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isBusinessLogoDisplayEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsCustomerConsentEnabled gets the isCustomerConsentEnabled property value. Enforces customer consent on the customer consent message before appointment is booked. +// returns a *bool when successful +func (m *BookingPageSettings) GetIsCustomerConsentEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isCustomerConsentEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsSearchEngineIndexabilityDisabled gets the isSearchEngineIndexabilityDisabled property value. Disable booking page to be indexed by search engines. False by default. +// returns a *bool when successful +func (m *BookingPageSettings) GetIsSearchEngineIndexabilityDisabled()(*bool) { + val, err := m.GetBackingStore().Get("isSearchEngineIndexabilityDisabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsTimeSlotTimeZoneSetToBusinessTimeZone gets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. If business time zone the default value for the time slots that we show in the bookings page. False by default. +// returns a *bool when successful +func (m *BookingPageSettings) GetIsTimeSlotTimeZoneSetToBusinessTimeZone()(*bool) { + val, err := m.GetBackingStore().Get("isTimeSlotTimeZoneSetToBusinessTimeZone") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *BookingPageSettings) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPrivacyPolicyWebUrl gets the privacyPolicyWebUrl property value. The URL of the business' Privacy Policy. +// returns a *string when successful +func (m *BookingPageSettings) GetPrivacyPolicyWebUrl()(*string) { + val, err := m.GetBackingStore().Get("privacyPolicyWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTermsAndConditionsWebUrl gets the termsAndConditionsWebUrl property value. The URL of the business' Terms and Conditions. +// returns a *string when successful +func (m *BookingPageSettings) GetTermsAndConditionsWebUrl()(*string) { + val, err := m.GetBackingStore().Get("termsAndConditionsWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *BookingPageSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAccessControl() != nil { + cast := (*m.GetAccessControl()).String() + err := writer.WriteStringValue("accessControl", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("bookingPageColorCode", m.GetBookingPageColorCode()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("businessTimeZone", m.GetBusinessTimeZone()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("customerConsentMessage", m.GetCustomerConsentMessage()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("enforceOneTimePassword", m.GetEnforceOneTimePassword()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isBusinessLogoDisplayEnabled", m.GetIsBusinessLogoDisplayEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isCustomerConsentEnabled", m.GetIsCustomerConsentEnabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isSearchEngineIndexabilityDisabled", m.GetIsSearchEngineIndexabilityDisabled()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isTimeSlotTimeZoneSetToBusinessTimeZone", m.GetIsTimeSlotTimeZoneSetToBusinessTimeZone()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("privacyPolicyWebUrl", m.GetPrivacyPolicyWebUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("termsAndConditionsWebUrl", m.GetTermsAndConditionsWebUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAccessControl sets the accessControl property value. The accessControl property +func (m *BookingPageSettings) SetAccessControl(value *BookingPageAccessControl)() { + err := m.GetBackingStore().Set("accessControl", value) + if err != nil { + panic(err) + } +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *BookingPageSettings) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *BookingPageSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBookingPageColorCode sets the bookingPageColorCode property value. Custom color for bookings page. Value should be in Hex format. Example: `#123456`. +func (m *BookingPageSettings) SetBookingPageColorCode(value *string)() { + err := m.GetBackingStore().Set("bookingPageColorCode", value) + if err != nil { + panic(err) + } +} +// SetBusinessTimeZone sets the businessTimeZone property value. The time zone of the customer. For a list of possible values, see [dateTimeTimeZone](https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-beta). +func (m *BookingPageSettings) SetBusinessTimeZone(value *string)() { + err := m.GetBackingStore().Set("businessTimeZone", value) + if err != nil { + panic(err) + } +} +// SetCustomerConsentMessage sets the customerConsentMessage property value. Customer consent message that is displayed in the Booking page. +func (m *BookingPageSettings) SetCustomerConsentMessage(value *string)() { + err := m.GetBackingStore().Set("customerConsentMessage", value) + if err != nil { + panic(err) + } +} +// SetEnforceOneTimePassword sets the enforceOneTimePassword property value. Enforcing One Time Password (OTP) during appointment creation. +func (m *BookingPageSettings) SetEnforceOneTimePassword(value *bool)() { + err := m.GetBackingStore().Set("enforceOneTimePassword", value) + if err != nil { + panic(err) + } +} +// SetIsBusinessLogoDisplayEnabled sets the isBusinessLogoDisplayEnabled property value. Enable display of business logo display on the Bookings page. +func (m *BookingPageSettings) SetIsBusinessLogoDisplayEnabled(value *bool)() { + err := m.GetBackingStore().Set("isBusinessLogoDisplayEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsCustomerConsentEnabled sets the isCustomerConsentEnabled property value. Enforces customer consent on the customer consent message before appointment is booked. +func (m *BookingPageSettings) SetIsCustomerConsentEnabled(value *bool)() { + err := m.GetBackingStore().Set("isCustomerConsentEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsSearchEngineIndexabilityDisabled sets the isSearchEngineIndexabilityDisabled property value. Disable booking page to be indexed by search engines. False by default. +func (m *BookingPageSettings) SetIsSearchEngineIndexabilityDisabled(value *bool)() { + err := m.GetBackingStore().Set("isSearchEngineIndexabilityDisabled", value) + if err != nil { + panic(err) + } +} +// SetIsTimeSlotTimeZoneSetToBusinessTimeZone sets the isTimeSlotTimeZoneSetToBusinessTimeZone property value. If business time zone the default value for the time slots that we show in the bookings page. False by default. +func (m *BookingPageSettings) SetIsTimeSlotTimeZoneSetToBusinessTimeZone(value *bool)() { + err := m.GetBackingStore().Set("isTimeSlotTimeZoneSetToBusinessTimeZone", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BookingPageSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPrivacyPolicyWebUrl sets the privacyPolicyWebUrl property value. The URL of the business' Privacy Policy. +func (m *BookingPageSettings) SetPrivacyPolicyWebUrl(value *string)() { + err := m.GetBackingStore().Set("privacyPolicyWebUrl", value) + if err != nil { + panic(err) + } +} +// SetTermsAndConditionsWebUrl sets the termsAndConditionsWebUrl property value. The URL of the business' Terms and Conditions. +func (m *BookingPageSettings) SetTermsAndConditionsWebUrl(value *string)() { + err := m.GetBackingStore().Set("termsAndConditionsWebUrl", value) + if err != nil { + panic(err) + } +} +type BookingPageSettingsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccessControl()(*BookingPageAccessControl) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBookingPageColorCode()(*string) + GetBusinessTimeZone()(*string) + GetCustomerConsentMessage()(*string) + GetEnforceOneTimePassword()(*bool) + GetIsBusinessLogoDisplayEnabled()(*bool) + GetIsCustomerConsentEnabled()(*bool) + GetIsSearchEngineIndexabilityDisabled()(*bool) + GetIsTimeSlotTimeZoneSetToBusinessTimeZone()(*bool) + GetOdataType()(*string) + GetPrivacyPolicyWebUrl()(*string) + GetTermsAndConditionsWebUrl()(*string) + SetAccessControl(value *BookingPageAccessControl)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBookingPageColorCode(value *string)() + SetBusinessTimeZone(value *string)() + SetCustomerConsentMessage(value *string)() + SetEnforceOneTimePassword(value *bool)() + SetIsBusinessLogoDisplayEnabled(value *bool)() + SetIsCustomerConsentEnabled(value *bool)() + SetIsSearchEngineIndexabilityDisabled(value *bool)() + SetIsTimeSlotTimeZoneSetToBusinessTimeZone(value *bool)() + SetOdataType(value *string)() + SetPrivacyPolicyWebUrl(value *string)() + SetTermsAndConditionsWebUrl(value *string)() +} diff --git a/models/booking_scheduling_policy.go b/models/booking_scheduling_policy.go index a2697d6fd3..6ca383bc46 100644 --- a/models/booking_scheduling_policy.go +++ b/models/booking_scheduling_policy.go @@ -53,6 +53,18 @@ func (m *BookingSchedulingPolicy) GetAllowStaffSelection()(*bool) { func (m *BookingSchedulingPolicy) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetCustomAvailabilities gets the customAvailabilities property value. collection of custom availabilities for a given time range. +// returns a []BookingsAvailabilityWindowable when successful +func (m *BookingSchedulingPolicy) GetCustomAvailabilities()([]BookingsAvailabilityWindowable) { + val, err := m.GetBackingStore().Get("customAvailabilities") + if err != nil { + panic(err) + } + if val != nil { + return val.([]BookingsAvailabilityWindowable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *BookingSchedulingPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -67,6 +79,42 @@ func (m *BookingSchedulingPolicy) GetFieldDeserializers()(map[string]func(i878a8 } return nil } + res["customAvailabilities"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateBookingsAvailabilityWindowFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]BookingsAvailabilityWindowable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(BookingsAvailabilityWindowable) + } + } + m.SetCustomAvailabilities(res) + } + return nil + } + res["generalAvailability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateBookingsAvailabilityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGeneralAvailability(val.(BookingsAvailabilityable)) + } + return nil + } + res["isMeetingInviteToCustomersEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsMeetingInviteToCustomersEnabled(val) + } + return nil + } res["maximumAdvance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetISODurationValue() if err != nil { @@ -119,6 +167,30 @@ func (m *BookingSchedulingPolicy) GetFieldDeserializers()(map[string]func(i878a8 } return res } +// GetGeneralAvailability gets the generalAvailability property value. General availability +// returns a BookingsAvailabilityable when successful +func (m *BookingSchedulingPolicy) GetGeneralAvailability()(BookingsAvailabilityable) { + val, err := m.GetBackingStore().Get("generalAvailability") + if err != nil { + panic(err) + } + if val != nil { + return val.(BookingsAvailabilityable) + } + return nil +} +// GetIsMeetingInviteToCustomersEnabled gets the isMeetingInviteToCustomersEnabled property value. Enable sending meeting invite to customers. False by default. +// returns a *bool when successful +func (m *BookingSchedulingPolicy) GetIsMeetingInviteToCustomersEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isMeetingInviteToCustomersEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetMaximumAdvance gets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. // returns a *ISODuration when successful func (m *BookingSchedulingPolicy) GetMaximumAdvance()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) { @@ -187,6 +259,30 @@ func (m *BookingSchedulingPolicy) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + if m.GetCustomAvailabilities() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomAvailabilities())) + for i, v := range m.GetCustomAvailabilities() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("customAvailabilities", cast) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("generalAvailability", m.GetGeneralAvailability()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("isMeetingInviteToCustomersEnabled", m.GetIsMeetingInviteToCustomersEnabled()) + if err != nil { + return err + } + } { err := writer.WriteISODurationValue("maximumAdvance", m.GetMaximumAdvance()) if err != nil { @@ -243,6 +339,27 @@ func (m *BookingSchedulingPolicy) SetAllowStaffSelection(value *bool)() { func (m *BookingSchedulingPolicy) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetCustomAvailabilities sets the customAvailabilities property value. collection of custom availabilities for a given time range. +func (m *BookingSchedulingPolicy) SetCustomAvailabilities(value []BookingsAvailabilityWindowable)() { + err := m.GetBackingStore().Set("customAvailabilities", value) + if err != nil { + panic(err) + } +} +// SetGeneralAvailability sets the generalAvailability property value. General availability +func (m *BookingSchedulingPolicy) SetGeneralAvailability(value BookingsAvailabilityable)() { + err := m.GetBackingStore().Set("generalAvailability", value) + if err != nil { + panic(err) + } +} +// SetIsMeetingInviteToCustomersEnabled sets the isMeetingInviteToCustomersEnabled property value. Enable sending meeting invite to customers. False by default. +func (m *BookingSchedulingPolicy) SetIsMeetingInviteToCustomersEnabled(value *bool)() { + err := m.GetBackingStore().Set("isMeetingInviteToCustomersEnabled", value) + if err != nil { + panic(err) + } +} // SetMaximumAdvance sets the maximumAdvance property value. Maximum number of days in advance that a booking can be made. It follows the ISO 8601 format. func (m *BookingSchedulingPolicy) SetMaximumAdvance(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() { err := m.GetBackingStore().Set("maximumAdvance", value) @@ -284,6 +401,9 @@ type BookingSchedulingPolicyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAllowStaffSelection()(*bool) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCustomAvailabilities()([]BookingsAvailabilityWindowable) + GetGeneralAvailability()(BookingsAvailabilityable) + GetIsMeetingInviteToCustomersEnabled()(*bool) GetMaximumAdvance()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetMinimumLeadTime()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetOdataType()(*string) @@ -291,6 +411,9 @@ type BookingSchedulingPolicyable interface { GetTimeSlotInterval()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) SetAllowStaffSelection(value *bool)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCustomAvailabilities(value []BookingsAvailabilityWindowable)() + SetGeneralAvailability(value BookingsAvailabilityable)() + SetIsMeetingInviteToCustomersEnabled(value *bool)() SetMaximumAdvance(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetMinimumLeadTime(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetOdataType(value *string)() diff --git a/models/booking_service.go b/models/booking_service.go index be4d9d4ae9..2d3ebbb749 100644 --- a/models/booking_service.go +++ b/models/booking_service.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -32,6 +33,18 @@ func (m *BookingService) GetAdditionalInformation()(*string) { } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingService) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetCustomQuestions gets the customQuestions property value. Contains the set of custom questions associated with a particular service. // returns a []BookingQuestionAssignmentable when successful func (m *BookingService) GetCustomQuestions()([]BookingQuestionAssignmentable) { @@ -142,6 +155,16 @@ func (m *BookingService) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["customQuestions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateBookingQuestionAssignmentFromDiscriminatorValue) if err != nil { @@ -244,6 +267,16 @@ func (m *BookingService) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["isCustomerAllowedToManageBooking"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsCustomerAllowedToManageBooking(val) + } + return nil + } res["isHiddenFromCustomers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -274,6 +307,16 @@ func (m *BookingService) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } res["maximumAttendeesCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -374,6 +417,18 @@ func (m *BookingService) GetIsAnonymousJoinEnabled()(*bool) { } return nil } +// GetIsCustomerAllowedToManageBooking gets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +// returns a *bool when successful +func (m *BookingService) GetIsCustomerAllowedToManageBooking()(*bool) { + val, err := m.GetBackingStore().Get("isCustomerAllowedToManageBooking") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsHiddenFromCustomers gets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. // returns a *bool when successful func (m *BookingService) GetIsHiddenFromCustomers()(*bool) { @@ -410,6 +465,18 @@ func (m *BookingService) GetLanguageTag()(*string) { } return nil } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingService) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetMaximumAttendeesCount gets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. // returns a *int32 when successful func (m *BookingService) GetMaximumAttendeesCount()(*int32) { @@ -518,6 +585,12 @@ func (m *BookingService) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } if m.GetCustomQuestions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCustomQuestions())) for i, v := range m.GetCustomQuestions() { @@ -585,6 +658,12 @@ func (m *BookingService) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteBoolValue("isCustomerAllowedToManageBooking", m.GetIsCustomerAllowedToManageBooking()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isHiddenFromCustomers", m.GetIsHiddenFromCustomers()) if err != nil { @@ -603,6 +682,12 @@ func (m *BookingService) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteInt32Value("maximumAttendeesCount", m.GetMaximumAttendeesCount()) if err != nil { @@ -654,6 +739,13 @@ func (m *BookingService) SetAdditionalInformation(value *string)() { panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingService) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetCustomQuestions sets the customQuestions property value. Contains the set of custom questions associated with a particular service. func (m *BookingService) SetCustomQuestions(value []BookingQuestionAssignmentable)() { err := m.GetBackingStore().Set("customQuestions", value) @@ -717,6 +809,13 @@ func (m *BookingService) SetIsAnonymousJoinEnabled(value *bool)() { panic(err) } } +// SetIsCustomerAllowedToManageBooking sets the isCustomerAllowedToManageBooking property value. The isCustomerAllowedToManageBooking property +func (m *BookingService) SetIsCustomerAllowedToManageBooking(value *bool)() { + err := m.GetBackingStore().Set("isCustomerAllowedToManageBooking", value) + if err != nil { + panic(err) + } +} // SetIsHiddenFromCustomers sets the isHiddenFromCustomers property value. True means this service is not available to customers for booking. func (m *BookingService) SetIsHiddenFromCustomers(value *bool)() { err := m.GetBackingStore().Set("isHiddenFromCustomers", value) @@ -738,6 +837,13 @@ func (m *BookingService) SetLanguageTag(value *string)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingService) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} // SetMaximumAttendeesCount sets the maximumAttendeesCount property value. The maximum number of customers allowed in a service. If maximumAttendeesCount of the service is greater than 1, pass valid customer IDs while creating or updating an appointment. To create a customer, use the Create bookingCustomer operation. func (m *BookingService) SetMaximumAttendeesCount(value *int32)() { err := m.GetBackingStore().Set("maximumAttendeesCount", value) @@ -798,6 +904,7 @@ type BookingServiceable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAdditionalInformation()(*string) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetCustomQuestions()([]BookingQuestionAssignmentable) GetDefaultDuration()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) GetDefaultLocation()(Locationable) @@ -807,9 +914,11 @@ type BookingServiceable interface { GetDescription()(*string) GetDisplayName()(*string) GetIsAnonymousJoinEnabled()(*bool) + GetIsCustomerAllowedToManageBooking()(*bool) GetIsHiddenFromCustomers()(*bool) GetIsLocationOnline()(*bool) GetLanguageTag()(*string) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMaximumAttendeesCount()(*int32) GetNotes()(*string) GetPostBuffer()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) @@ -819,6 +928,7 @@ type BookingServiceable interface { GetStaffMemberIds()([]string) GetWebUrl()(*string) SetAdditionalInformation(value *string)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetCustomQuestions(value []BookingQuestionAssignmentable)() SetDefaultDuration(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() SetDefaultLocation(value Locationable)() @@ -828,9 +938,11 @@ type BookingServiceable interface { SetDescription(value *string)() SetDisplayName(value *string)() SetIsAnonymousJoinEnabled(value *bool)() + SetIsCustomerAllowedToManageBooking(value *bool)() SetIsHiddenFromCustomers(value *bool)() SetIsLocationOnline(value *bool)() SetLanguageTag(value *string)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMaximumAttendeesCount(value *int32)() SetNotes(value *string)() SetPostBuffer(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() diff --git a/models/booking_staff_member.go b/models/booking_staff_member.go index 4dd129018d..141a1aaf76 100644 --- a/models/booking_staff_member.go +++ b/models/booking_staff_member.go @@ -1,6 +1,7 @@ package models import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) @@ -34,6 +35,18 @@ func (m *BookingStaffMember) GetAvailabilityIsAffectedByPersonalCalendar()(*bool } return nil } +// GetCreatedDateTime gets the createdDateTime property value. The createdDateTime property +// returns a *Time when successful +func (m *BookingStaffMember) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetDisplayName gets the displayName property value. The name of the staff member, as displayed to customers. Required. // returns a *string when successful func (m *BookingStaffMember) GetDisplayName()(*string) { @@ -72,6 +85,16 @@ func (m *BookingStaffMember) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["createdDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCreatedDateTime(val) + } + return nil + } res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -102,6 +125,16 @@ func (m *BookingStaffMember) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["lastUpdatedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastUpdatedDateTime(val) + } + return nil + } res["membershipStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseBookingStaffMembershipStatus) if err != nil { @@ -172,6 +205,18 @@ func (m *BookingStaffMember) GetIsEmailNotificationEnabled()(*bool) { } return nil } +// GetLastUpdatedDateTime gets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +// returns a *Time when successful +func (m *BookingStaffMember) GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastUpdatedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetMembershipStatus gets the membershipStatus property value. The membershipStatus property // returns a *BookingStaffMembershipStatus when successful func (m *BookingStaffMember) GetMembershipStatus()(*BookingStaffMembershipStatus) { @@ -244,6 +289,12 @@ func (m *BookingStaffMember) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } { err = writer.WriteStringValue("displayName", m.GetDisplayName()) if err != nil { @@ -262,6 +313,12 @@ func (m *BookingStaffMember) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteTimeValue("lastUpdatedDateTime", m.GetLastUpdatedDateTime()) + if err != nil { + return err + } + } if m.GetMembershipStatus() != nil { cast := (*m.GetMembershipStatus()).String() err = writer.WriteStringValue("membershipStatus", &cast) @@ -309,6 +366,13 @@ func (m *BookingStaffMember) SetAvailabilityIsAffectedByPersonalCalendar(value * panic(err) } } +// SetCreatedDateTime sets the createdDateTime property value. The createdDateTime property +func (m *BookingStaffMember) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} // SetDisplayName sets the displayName property value. The name of the staff member, as displayed to customers. Required. func (m *BookingStaffMember) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) @@ -330,6 +394,13 @@ func (m *BookingStaffMember) SetIsEmailNotificationEnabled(value *bool)() { panic(err) } } +// SetLastUpdatedDateTime sets the lastUpdatedDateTime property value. The lastUpdatedDateTime property +func (m *BookingStaffMember) SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastUpdatedDateTime", value) + if err != nil { + panic(err) + } +} // SetMembershipStatus sets the membershipStatus property value. The membershipStatus property func (m *BookingStaffMember) SetMembershipStatus(value *BookingStaffMembershipStatus)() { err := m.GetBackingStore().Set("membershipStatus", value) @@ -369,18 +440,22 @@ type BookingStaffMemberable interface { BookingStaffMemberBaseable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetAvailabilityIsAffectedByPersonalCalendar()(*bool) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDisplayName()(*string) GetEmailAddress()(*string) GetIsEmailNotificationEnabled()(*bool) + GetLastUpdatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetMembershipStatus()(*BookingStaffMembershipStatus) GetRole()(*BookingStaffRole) GetTimeZone()(*string) GetUseBusinessHours()(*bool) GetWorkingHours()([]BookingWorkHoursable) SetAvailabilityIsAffectedByPersonalCalendar(value *bool)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetDisplayName(value *string)() SetEmailAddress(value *string)() SetIsEmailNotificationEnabled(value *bool)() + SetLastUpdatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetMembershipStatus(value *BookingStaffMembershipStatus)() SetRole(value *BookingStaffRole)() SetTimeZone(value *string)() diff --git a/models/bookings_availability.go b/models/bookings_availability.go new file mode 100644 index 0000000000..dbbf924838 --- /dev/null +++ b/models/bookings_availability.go @@ -0,0 +1,218 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type BookingsAvailability struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewBookingsAvailability instantiates a new BookingsAvailability and sets the default values. +func NewBookingsAvailability()(*BookingsAvailability) { + m := &BookingsAvailability{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateBookingsAvailabilityFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateBookingsAvailabilityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.bookingsAvailabilityWindow": + return NewBookingsAvailabilityWindow(), nil + } + } + } + } + return NewBookingsAvailability(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *BookingsAvailability) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetAvailabilityType gets the availabilityType property value. The availabilityType property +// returns a *BookingsServiceAvailabilityType when successful +func (m *BookingsAvailability) GetAvailabilityType()(*BookingsServiceAvailabilityType) { + val, err := m.GetBackingStore().Get("availabilityType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*BookingsServiceAvailabilityType) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *BookingsAvailability) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBusinessHours gets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours +// returns a []BookingWorkHoursable when successful +func (m *BookingsAvailability) GetBusinessHours()([]BookingWorkHoursable) { + val, err := m.GetBackingStore().Get("businessHours") + if err != nil { + panic(err) + } + if val != nil { + return val.([]BookingWorkHoursable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *BookingsAvailability) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["availabilityType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseBookingsServiceAvailabilityType) + if err != nil { + return err + } + if val != nil { + m.SetAvailabilityType(val.(*BookingsServiceAvailabilityType)) + } + return nil + } + res["businessHours"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateBookingWorkHoursFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]BookingWorkHoursable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(BookingWorkHoursable) + } + } + m.SetBusinessHours(res) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *BookingsAvailability) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *BookingsAvailability) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetAvailabilityType() != nil { + cast := (*m.GetAvailabilityType()).String() + err := writer.WriteStringValue("availabilityType", &cast) + if err != nil { + return err + } + } + if m.GetBusinessHours() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetBusinessHours())) + for i, v := range m.GetBusinessHours() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("businessHours", cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *BookingsAvailability) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetAvailabilityType sets the availabilityType property value. The availabilityType property +func (m *BookingsAvailability) SetAvailabilityType(value *BookingsServiceAvailabilityType)() { + err := m.GetBackingStore().Set("availabilityType", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *BookingsAvailability) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBusinessHours sets the businessHours property value. The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours +func (m *BookingsAvailability) SetBusinessHours(value []BookingWorkHoursable)() { + err := m.GetBackingStore().Set("businessHours", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *BookingsAvailability) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type BookingsAvailabilityable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAvailabilityType()(*BookingsServiceAvailabilityType) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBusinessHours()([]BookingWorkHoursable) + GetOdataType()(*string) + SetAvailabilityType(value *BookingsServiceAvailabilityType)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBusinessHours(value []BookingWorkHoursable)() + SetOdataType(value *string)() +} diff --git a/models/bookings_availability_window.go b/models/bookings_availability_window.go new file mode 100644 index 0000000000..974ba37818 --- /dev/null +++ b/models/bookings_availability_window.go @@ -0,0 +1,115 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type BookingsAvailabilityWindow struct { + BookingsAvailability +} +// NewBookingsAvailabilityWindow instantiates a new BookingsAvailabilityWindow and sets the default values. +func NewBookingsAvailabilityWindow()(*BookingsAvailabilityWindow) { + m := &BookingsAvailabilityWindow{ + BookingsAvailability: *NewBookingsAvailability(), + } + odataTypeValue := "#microsoft.graph.bookingsAvailabilityWindow" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateBookingsAvailabilityWindowFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateBookingsAvailabilityWindowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewBookingsAvailabilityWindow(), nil +} +// GetEndDate gets the endDate property value. Allow customers to end date of availability window. +// returns a *DateOnly when successful +func (m *BookingsAvailabilityWindow) GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("endDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *BookingsAvailabilityWindow) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BookingsAvailability.GetFieldDeserializers() + res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetEndDate(val) + } + return nil + } + res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetDateOnlyValue() + if err != nil { + return err + } + if val != nil { + m.SetStartDate(val) + } + return nil + } + return res +} +// GetStartDate gets the startDate property value. Allow customers to start date of availability window. +// returns a *DateOnly when successful +func (m *BookingsAvailabilityWindow) GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { + val, err := m.GetBackingStore().Get("startDate") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + } + return nil +} +// Serialize serializes information the current object +func (m *BookingsAvailabilityWindow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BookingsAvailability.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteDateOnlyValue("endDate", m.GetEndDate()) + if err != nil { + return err + } + } + { + err = writer.WriteDateOnlyValue("startDate", m.GetStartDate()) + if err != nil { + return err + } + } + return nil +} +// SetEndDate sets the endDate property value. Allow customers to end date of availability window. +func (m *BookingsAvailabilityWindow) SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("endDate", value) + if err != nil { + panic(err) + } +} +// SetStartDate sets the startDate property value. Allow customers to start date of availability window. +func (m *BookingsAvailabilityWindow) SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { + err := m.GetBackingStore().Set("startDate", value) + if err != nil { + panic(err) + } +} +type BookingsAvailabilityWindowable interface { + BookingsAvailabilityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEndDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + GetStartDate()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) + SetEndDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() + SetStartDate(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() +} diff --git a/models/bookings_service_availability_type.go b/models/bookings_service_availability_type.go new file mode 100644 index 0000000000..7e85f77cc4 --- /dev/null +++ b/models/bookings_service_availability_type.go @@ -0,0 +1,39 @@ +package models +type BookingsServiceAvailabilityType int + +const ( + BOOKWHENSTAFFAREFREE_BOOKINGSSERVICEAVAILABILITYTYPE BookingsServiceAvailabilityType = iota + NOTBOOKABLE_BOOKINGSSERVICEAVAILABILITYTYPE + CUSTOMWEEKLYHOURS_BOOKINGSSERVICEAVAILABILITYTYPE + UNKNOWNFUTUREVALUE_BOOKINGSSERVICEAVAILABILITYTYPE +) + +func (i BookingsServiceAvailabilityType) String() string { + return []string{"bookWhenStaffAreFree", "notBookable", "customWeeklyHours", "unknownFutureValue"}[i] +} +func ParseBookingsServiceAvailabilityType(v string) (any, error) { + result := BOOKWHENSTAFFAREFREE_BOOKINGSSERVICEAVAILABILITYTYPE + switch v { + case "bookWhenStaffAreFree": + result = BOOKWHENSTAFFAREFREE_BOOKINGSSERVICEAVAILABILITYTYPE + case "notBookable": + result = NOTBOOKABLE_BOOKINGSSERVICEAVAILABILITYTYPE + case "customWeeklyHours": + result = CUSTOMWEEKLYHOURS_BOOKINGSSERVICEAVAILABILITYTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_BOOKINGSSERVICEAVAILABILITYTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeBookingsServiceAvailabilityType(values []BookingsServiceAvailabilityType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i BookingsServiceAvailabilityType) isMultiValue() bool { + return false +} diff --git a/models/call_transcript.go b/models/call_transcript.go index bc2dd1aa8f..5e23dd8c87 100644 --- a/models/call_transcript.go +++ b/models/call_transcript.go @@ -32,7 +32,7 @@ func (m *CallTranscript) GetContent()([]byte) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. Date and time at which the transcript was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// GetCreatedDateTime gets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. // returns a *Time when successful func (m *CallTranscript) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -209,7 +209,7 @@ func (m *CallTranscript) SetContent(value []byte)() { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. Date and time at which the transcript was created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +// SetCreatedDateTime sets the createdDateTime property value. Date and time at which the transcript was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. func (m *CallTranscript) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { diff --git a/models/channel.go b/models/channel.go index 4e354c2bda..c8f5177961 100644 --- a/models/channel.go +++ b/models/channel.go @@ -122,6 +122,16 @@ func (m *Channel) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["isArchived"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsArchived(val) + } + return nil + } res["isFavoriteByDefault"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -250,6 +260,18 @@ func (m *Channel) GetFilesFolder()(DriveItemable) { } return nil } +// GetIsArchived gets the isArchived property value. Indicates whether the channel is archived. Read-only. +// returns a *bool when successful +func (m *Channel) GetIsArchived()(*bool) { + val, err := m.GetBackingStore().Get("isArchived") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} // GetIsFavoriteByDefault gets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. // returns a *bool when successful func (m *Channel) GetIsFavoriteByDefault()(*bool) { @@ -394,6 +416,12 @@ func (m *Channel) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + { + err = writer.WriteBoolValue("isArchived", m.GetIsArchived()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("isFavoriteByDefault", m.GetIsFavoriteByDefault()) if err != nil { @@ -510,6 +538,13 @@ func (m *Channel) SetFilesFolder(value DriveItemable)() { panic(err) } } +// SetIsArchived sets the isArchived property value. Indicates whether the channel is archived. Read-only. +func (m *Channel) SetIsArchived(value *bool)() { + err := m.GetBackingStore().Set("isArchived", value) + if err != nil { + panic(err) + } +} // SetIsFavoriteByDefault sets the isFavoriteByDefault property value. Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. func (m *Channel) SetIsFavoriteByDefault(value *bool)() { err := m.GetBackingStore().Set("isFavoriteByDefault", value) @@ -581,6 +616,7 @@ type Channelable interface { GetDisplayName()(*string) GetEmail()(*string) GetFilesFolder()(DriveItemable) + GetIsArchived()(*bool) GetIsFavoriteByDefault()(*bool) GetMembers()([]ConversationMemberable) GetMembershipType()(*ChannelMembershipType) @@ -595,6 +631,7 @@ type Channelable interface { SetDisplayName(value *string)() SetEmail(value *string)() SetFilesFolder(value DriveItemable)() + SetIsArchived(value *bool)() SetIsFavoriteByDefault(value *bool)() SetMembers(value []ConversationMemberable)() SetMembershipType(value *ChannelMembershipType)() diff --git a/models/cross_tenant_access_policy_b2_b_setting.go b/models/cross_tenant_access_policy_b2_b_setting.go index cdf46b7663..adcf424c7a 100644 --- a/models/cross_tenant_access_policy_b2_b_setting.go +++ b/models/cross_tenant_access_policy_b2_b_setting.go @@ -20,6 +20,24 @@ func NewCrossTenantAccessPolicyB2BSetting()(*CrossTenantAccessPolicyB2BSetting) // CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateCrossTenantAccessPolicyB2BSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.crossTenantAccessPolicyTenantRestrictions": + return NewCrossTenantAccessPolicyTenantRestrictions(), nil + } + } + } + } return NewCrossTenantAccessPolicyB2BSetting(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/models/cross_tenant_access_policy_configuration_default.go b/models/cross_tenant_access_policy_configuration_default.go index 08505166fd..dc6a48b373 100644 --- a/models/cross_tenant_access_policy_configuration_default.go +++ b/models/cross_tenant_access_policy_configuration_default.go @@ -163,6 +163,16 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) GetFieldDeserializers()(ma } return nil } + res["tenantRestrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTenantRestrictions(val.(CrossTenantAccessPolicyTenantRestrictionsable)) + } + return nil + } return res } // GetInboundTrust gets the inboundTrust property value. Determines the default configuration for trusting other Conditional Access claims from external Microsoft Entra organizations. @@ -201,6 +211,18 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) GetIsServiceDefault()(*boo } return nil } +// GetTenantRestrictions gets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. +// returns a CrossTenantAccessPolicyTenantRestrictionsable when successful +func (m *CrossTenantAccessPolicyConfigurationDefault) GetTenantRestrictions()(CrossTenantAccessPolicyTenantRestrictionsable) { + val, err := m.GetBackingStore().Get("tenantRestrictions") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyTenantRestrictionsable) + } + return nil +} // Serialize serializes information the current object func (m *CrossTenantAccessPolicyConfigurationDefault) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -255,6 +277,12 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) Serialize(writer i878a80d2 return err } } + { + err = writer.WriteObjectValue("tenantRestrictions", m.GetTenantRestrictions()) + if err != nil { + return err + } + } return nil } // SetAutomaticUserConsentSettings sets the automaticUserConsentSettings property value. Determines the default configuration for automatic user consent settings. The inboundAllowed and outboundAllowed properties are always false and can't be updated in the default configuration. Read-only. @@ -313,6 +341,13 @@ func (m *CrossTenantAccessPolicyConfigurationDefault) SetIsServiceDefault(value panic(err) } } +// SetTenantRestrictions sets the tenantRestrictions property value. Defines the default tenant restrictions configuration for users in your organization who access an external organization on your network or devices. +func (m *CrossTenantAccessPolicyConfigurationDefault) SetTenantRestrictions(value CrossTenantAccessPolicyTenantRestrictionsable)() { + err := m.GetBackingStore().Set("tenantRestrictions", value) + if err != nil { + panic(err) + } +} type CrossTenantAccessPolicyConfigurationDefaultable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -324,6 +359,7 @@ type CrossTenantAccessPolicyConfigurationDefaultable interface { GetInboundTrust()(CrossTenantAccessPolicyInboundTrustable) GetInvitationRedemptionIdentityProviderConfiguration()(DefaultInvitationRedemptionIdentityProviderConfigurationable) GetIsServiceDefault()(*bool) + GetTenantRestrictions()(CrossTenantAccessPolicyTenantRestrictionsable) SetAutomaticUserConsentSettings(value InboundOutboundPolicyConfigurationable)() SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() @@ -332,4 +368,5 @@ type CrossTenantAccessPolicyConfigurationDefaultable interface { SetInboundTrust(value CrossTenantAccessPolicyInboundTrustable)() SetInvitationRedemptionIdentityProviderConfiguration(value DefaultInvitationRedemptionIdentityProviderConfigurationable)() SetIsServiceDefault(value *bool)() + SetTenantRestrictions(value CrossTenantAccessPolicyTenantRestrictionsable)() } diff --git a/models/cross_tenant_access_policy_configuration_partner.go b/models/cross_tenant_access_policy_configuration_partner.go index d5e7d4aa17..bb94e9b70f 100644 --- a/models/cross_tenant_access_policy_configuration_partner.go +++ b/models/cross_tenant_access_policy_configuration_partner.go @@ -214,6 +214,16 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetFieldDeserializers()(ma } return nil } + res["tenantRestrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetTenantRestrictions(val.(CrossTenantAccessPolicyTenantRestrictionsable)) + } + return nil + } return res } // GetIdentitySynchronization gets the identitySynchronization property value. Defines the cross-tenant policy for the synchronization of users from a partner tenant. Use this user synchronization policy to streamline collaboration between users in a multitenant organization by automating the creation, update, and deletion of users from one tenant to another. @@ -288,6 +298,18 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) GetTenantId()(*string) { } return nil } +// GetTenantRestrictions gets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. +// returns a CrossTenantAccessPolicyTenantRestrictionsable when successful +func (m *CrossTenantAccessPolicyConfigurationPartner) GetTenantRestrictions()(CrossTenantAccessPolicyTenantRestrictionsable) { + val, err := m.GetBackingStore().Get("tenantRestrictions") + if err != nil { + panic(err) + } + if val != nil { + return val.(CrossTenantAccessPolicyTenantRestrictionsable) + } + return nil +} // Serialize serializes information the current object func (m *CrossTenantAccessPolicyConfigurationPartner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -356,6 +378,12 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) Serialize(writer i878a80d2 return err } } + { + err := writer.WriteObjectValue("tenantRestrictions", m.GetTenantRestrictions()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -452,6 +480,13 @@ func (m *CrossTenantAccessPolicyConfigurationPartner) SetTenantId(value *string) panic(err) } } +// SetTenantRestrictions sets the tenantRestrictions property value. Defines the partner-specific tenant restrictions configuration for users in your organization who access a partner organization using partner supplied identities on your network or devices. +func (m *CrossTenantAccessPolicyConfigurationPartner) SetTenantRestrictions(value CrossTenantAccessPolicyTenantRestrictionsable)() { + err := m.GetBackingStore().Set("tenantRestrictions", value) + if err != nil { + panic(err) + } +} type CrossTenantAccessPolicyConfigurationPartnerable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -468,6 +503,7 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { GetIsServiceProvider()(*bool) GetOdataType()(*string) GetTenantId()(*string) + GetTenantRestrictions()(CrossTenantAccessPolicyTenantRestrictionsable) SetAutomaticUserConsentSettings(value InboundOutboundPolicyConfigurationable)() SetB2bCollaborationInbound(value CrossTenantAccessPolicyB2BSettingable)() SetB2bCollaborationOutbound(value CrossTenantAccessPolicyB2BSettingable)() @@ -480,4 +516,5 @@ type CrossTenantAccessPolicyConfigurationPartnerable interface { SetIsServiceProvider(value *bool)() SetOdataType(value *string)() SetTenantId(value *string)() + SetTenantRestrictions(value CrossTenantAccessPolicyTenantRestrictionsable)() } diff --git a/models/cross_tenant_access_policy_tenant_restrictions.go b/models/cross_tenant_access_policy_tenant_restrictions.go new file mode 100644 index 0000000000..cfca695629 --- /dev/null +++ b/models/cross_tenant_access_policy_tenant_restrictions.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CrossTenantAccessPolicyTenantRestrictions struct { + CrossTenantAccessPolicyB2BSetting +} +// NewCrossTenantAccessPolicyTenantRestrictions instantiates a new CrossTenantAccessPolicyTenantRestrictions and sets the default values. +func NewCrossTenantAccessPolicyTenantRestrictions()(*CrossTenantAccessPolicyTenantRestrictions) { + m := &CrossTenantAccessPolicyTenantRestrictions{ + CrossTenantAccessPolicyB2BSetting: *NewCrossTenantAccessPolicyB2BSetting(), + } + odataTypeValue := "#microsoft.graph.crossTenantAccessPolicyTenantRestrictions" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCrossTenantAccessPolicyTenantRestrictionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCrossTenantAccessPolicyTenantRestrictions(), nil +} +// GetDevices gets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. +// returns a DevicesFilterable when successful +func (m *CrossTenantAccessPolicyTenantRestrictions) GetDevices()(DevicesFilterable) { + val, err := m.GetBackingStore().Get("devices") + if err != nil { + panic(err) + } + if val != nil { + return val.(DevicesFilterable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CrossTenantAccessPolicyTenantRestrictions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.CrossTenantAccessPolicyB2BSetting.GetFieldDeserializers() + res["devices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateDevicesFilterFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetDevices(val.(DevicesFilterable)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *CrossTenantAccessPolicyTenantRestrictions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.CrossTenantAccessPolicyB2BSetting.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("devices", m.GetDevices()) + if err != nil { + return err + } + } + return nil +} +// SetDevices sets the devices property value. Defines the rule for filtering devices and whether devices that satisfy the rule should be allowed or blocked. This property isn't supported on the server side yet. +func (m *CrossTenantAccessPolicyTenantRestrictions) SetDevices(value DevicesFilterable)() { + err := m.GetBackingStore().Set("devices", value) + if err != nil { + panic(err) + } +} +type CrossTenantAccessPolicyTenantRestrictionsable interface { + CrossTenantAccessPolicyB2BSettingable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDevices()(DevicesFilterable) + SetDevices(value DevicesFilterable)() +} diff --git a/models/custom_app_management_configuration.go b/models/custom_app_management_configuration.go new file mode 100644 index 0000000000..858c2edc51 --- /dev/null +++ b/models/custom_app_management_configuration.go @@ -0,0 +1,41 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CustomAppManagementConfiguration struct { + AppManagementConfiguration +} +// NewCustomAppManagementConfiguration instantiates a new CustomAppManagementConfiguration and sets the default values. +func NewCustomAppManagementConfiguration()(*CustomAppManagementConfiguration) { + m := &CustomAppManagementConfiguration{ + AppManagementConfiguration: *NewAppManagementConfiguration(), + } + odataTypeValue := "#microsoft.graph.customAppManagementConfiguration" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCustomAppManagementConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCustomAppManagementConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCustomAppManagementConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CustomAppManagementConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AppManagementConfiguration.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *CustomAppManagementConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AppManagementConfiguration.Serialize(writer) + if err != nil { + return err + } + return nil +} +type CustomAppManagementConfigurationable interface { + AppManagementConfigurationable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/devices_filter.go b/models/devices_filter.go new file mode 100644 index 0000000000..205476c4bb --- /dev/null +++ b/models/devices_filter.go @@ -0,0 +1,188 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type DevicesFilter struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDevicesFilter instantiates a new DevicesFilter and sets the default values. +func NewDevicesFilter()(*DevicesFilter) { + m := &DevicesFilter{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDevicesFilterFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDevicesFilterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDevicesFilter(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DevicesFilter) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DevicesFilter) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DevicesFilter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseCrossTenantAccessPolicyTargetConfigurationAccessType) + if err != nil { + return err + } + if val != nil { + m.SetMode(val.(*CrossTenantAccessPolicyTargetConfigurationAccessType)) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["rule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRule(val) + } + return nil + } + return res +} +// GetMode gets the mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. +// returns a *CrossTenantAccessPolicyTargetConfigurationAccessType when successful +func (m *DevicesFilter) GetMode()(*CrossTenantAccessPolicyTargetConfigurationAccessType) { + val, err := m.GetBackingStore().Get("mode") + if err != nil { + panic(err) + } + if val != nil { + return val.(*CrossTenantAccessPolicyTargetConfigurationAccessType) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *DevicesFilter) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRule gets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. +// returns a *string when successful +func (m *DevicesFilter) GetRule()(*string) { + val, err := m.GetBackingStore().Get("rule") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *DevicesFilter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetMode() != nil { + cast := (*m.GetMode()).String() + err := writer.WriteStringValue("mode", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("rule", m.GetRule()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DevicesFilter) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DevicesFilter) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetMode sets the mode property value. Determines whether devices that satisfy the rule should be allowed or blocked. The possible values are: allowed, blocked, unknownFutureValue. +func (m *DevicesFilter) SetMode(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() { + err := m.GetBackingStore().Set("mode", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *DevicesFilter) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRule sets the rule property value. Defines the rule to filter the devices. For example, device.deviceAttribute2 -eq 'PrivilegedAccessWorkstation'. +func (m *DevicesFilter) SetRule(value *string)() { + err := m.GetBackingStore().Set("rule", value) + if err != nil { + panic(err) + } +} +type DevicesFilterable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetMode()(*CrossTenantAccessPolicyTargetConfigurationAccessType) + GetOdataType()(*string) + GetRule()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetMode(value *CrossTenantAccessPolicyTargetConfigurationAccessType)() + SetOdataType(value *string)() + SetRule(value *string)() +} diff --git a/models/education_rubric.go b/models/education_rubric.go index 3c5b519d67..da5bb14f7a 100644 --- a/models/education_rubric.go +++ b/models/education_rubric.go @@ -32,7 +32,7 @@ func (m *EducationRubric) GetCreatedBy()(IdentitySetable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// GetCreatedDateTime gets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *EducationRubric) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -176,7 +176,7 @@ func (m *EducationRubric) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetGrading gets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. +// GetGrading gets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. // returns a EducationAssignmentGradeTypeable when successful func (m *EducationRubric) GetGrading()(EducationAssignmentGradeTypeable) { val, err := m.GetBackingStore().Get("grading") @@ -200,7 +200,7 @@ func (m *EducationRubric) GetLastModifiedBy()(IdentitySetable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *EducationRubric) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -293,7 +293,7 @@ func (m *EducationRubric) SetCreatedBy(value IdentitySetable)() { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// SetCreatedDateTime sets the createdDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *EducationRubric) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { @@ -314,7 +314,7 @@ func (m *EducationRubric) SetDisplayName(value *string)() { panic(err) } } -// SetGrading sets the grading property value. The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. +// SetGrading sets the grading property value. The grading type of this rubric. You can use null for a no-points rubric or educationAssignmentPointsGradeType for a points rubric. func (m *EducationRubric) SetGrading(value EducationAssignmentGradeTypeable)() { err := m.GetBackingStore().Set("grading", value) if err != nil { @@ -328,7 +328,7 @@ func (m *EducationRubric) SetLastModifiedBy(value IdentitySetable)() { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. Moment in time when the resource was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *EducationRubric) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { diff --git a/models/entity.go b/models/entity.go index d40daae85e..515275a0c1 100644 --- a/models/entity.go +++ b/models/entity.go @@ -662,6 +662,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewInferenceClassification(), nil case "#microsoft.graph.inferenceClassificationOverride": return NewInferenceClassificationOverride(), nil + case "#microsoft.graph.insightsSettings": + return NewInsightsSettings(), nil case "#microsoft.graph.internalDomainFederation": return NewInternalDomainFederation(), nil case "#microsoft.graph.internetExplorerMode": @@ -714,6 +716,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewItemAnalytics(), nil case "#microsoft.graph.itemAttachment": return NewItemAttachment(), nil + case "#microsoft.graph.itemInsights": + return NewItemInsights(), nil case "#microsoft.graph.itemRetentionLabel": return NewItemRetentionLabel(), nil case "#microsoft.graph.landingPage": @@ -1154,6 +1158,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewServicePrincipal(), nil case "#microsoft.graph.servicePrincipalRiskDetection": return NewServicePrincipalRiskDetection(), nil + case "#microsoft.graph.serviceStorageQuotaBreakdown": + return NewServiceStorageQuotaBreakdown(), nil case "#microsoft.graph.serviceUpdateMessage": return NewServiceUpdateMessage(), nil case "#microsoft.graph.settingStateDeviceSummary": @@ -1210,6 +1216,10 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewStartHoldMusicOperation(), nil case "#microsoft.graph.stopHoldMusicOperation": return NewStopHoldMusicOperation(), nil + case "#microsoft.graph.storageQuotaBreakdown": + return NewStorageQuotaBreakdown(), nil + case "#microsoft.graph.storageSettings": + return NewStorageSettings(), nil case "#microsoft.graph.stsPolicy": return NewStsPolicy(), nil case "#microsoft.graph.subjectRightsRequest": @@ -1354,6 +1364,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewUnifiedRoleScheduleBase(), nil case "#microsoft.graph.unifiedRoleScheduleInstanceBase": return NewUnifiedRoleScheduleInstanceBase(), nil + case "#microsoft.graph.unifiedStorageQuota": + return NewUnifiedStorageQuota(), nil case "#microsoft.graph.unmuteParticipantOperation": return NewUnmuteParticipantOperation(), nil case "#microsoft.graph.updateRecordingStatusOperation": @@ -1420,6 +1432,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewUserFlowLanguageConfiguration(), nil case "#microsoft.graph.userFlowLanguagePage": return NewUserFlowLanguagePage(), nil + case "#microsoft.graph.userInsightsSettings": + return NewUserInsightsSettings(), nil case "#microsoft.graph.userInstallStateSummary": return NewUserInstallStateSummary(), nil case "#microsoft.graph.userRegistrationDetails": @@ -1430,6 +1444,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewUserSettings(), nil case "#microsoft.graph.userSignInInsight": return NewUserSignInInsight(), nil + case "#microsoft.graph.userStorage": + return NewUserStorage(), nil case "#microsoft.graph.userTeamwork": return NewUserTeamwork(), nil case "#microsoft.graph.verticalSection": @@ -1438,14 +1454,28 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewVirtualEndpoint(), nil case "#microsoft.graph.virtualEvent": return NewVirtualEvent(), nil + case "#microsoft.graph.virtualEventPresenter": + return NewVirtualEventPresenter(), nil case "#microsoft.graph.virtualEventRegistration": return NewVirtualEventRegistration(), nil + case "#microsoft.graph.virtualEventRegistrationConfiguration": + return NewVirtualEventRegistrationConfiguration(), nil + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": + return NewVirtualEventRegistrationPredefinedQuestion(), nil + case "#microsoft.graph.virtualEventRegistrationQuestionBase": + return NewVirtualEventRegistrationQuestionBase(), nil case "#microsoft.graph.virtualEventSession": return NewVirtualEventSession(), nil case "#microsoft.graph.virtualEventsRoot": return NewVirtualEventsRoot(), nil + case "#microsoft.graph.virtualEventTownhall": + return NewVirtualEventTownhall(), nil case "#microsoft.graph.virtualEventWebinar": return NewVirtualEventWebinar(), nil + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return NewVirtualEventWebinarRegistrationConfiguration(), nil case "#microsoft.graph.voiceAuthenticationMethodConfiguration": return NewVoiceAuthenticationMethodConfiguration(), nil case "#microsoft.graph.vppToken": diff --git a/models/identity.go b/models/identity.go index d10103e018..02f4025bfd 100644 --- a/models/identity.go +++ b/models/identity.go @@ -94,7 +94,7 @@ func (m *Identity) GetAdditionalData()(map[string]any) { func (m *Identity) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDisplayName gets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. +// GetDisplayName gets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. // returns a *string when successful func (m *Identity) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -142,7 +142,7 @@ func (m *Identity) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return res } -// GetId gets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. +// GetId gets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. // returns a *string when successful func (m *Identity) GetId()(*string) { val, err := m.GetBackingStore().Get("id") @@ -205,14 +205,14 @@ func (m *Identity) SetAdditionalData(value map[string]any)() { func (m *Identity) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDisplayName sets the displayName property value. The display name of the identity. The display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as having changed when using delta. +// SetDisplayName sets the displayName property value. The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta. func (m *Identity) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetId sets the id property value. Unique identifier for the identity. When the unique identifier is unavailable, the displayName property is provided for the identity, but the id property isn't included in the response. +// SetId sets the id property value. Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review. func (m *Identity) SetId(value *string)() { err := m.GetBackingStore().Set("id", value) if err != nil { diff --git a/models/insights_settings.go b/models/insights_settings.go new file mode 100644 index 0000000000..e5e1dc2030 --- /dev/null +++ b/models/insights_settings.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type InsightsSettings struct { + Entity +} +// NewInsightsSettings instantiates a new InsightsSettings and sets the default values. +func NewInsightsSettings()(*InsightsSettings) { + m := &InsightsSettings{ + Entity: *NewEntity(), + } + return m +} +// CreateInsightsSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateInsightsSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewInsightsSettings(), nil +} +// GetDisabledForGroup gets the disabledForGroup property value. The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. +// returns a *string when successful +func (m *InsightsSettings) GetDisabledForGroup()(*string) { + val, err := m.GetBackingStore().Get("disabledForGroup") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *InsightsSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["disabledForGroup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisabledForGroup(val) + } + return nil + } + res["isEnabledInOrganization"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsEnabledInOrganization(val) + } + return nil + } + return res +} +// GetIsEnabledInOrganization gets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. +// returns a *bool when successful +func (m *InsightsSettings) GetIsEnabledInOrganization()(*bool) { + val, err := m.GetBackingStore().Get("isEnabledInOrganization") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *InsightsSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("disabledForGroup", m.GetDisabledForGroup()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isEnabledInOrganization", m.GetIsEnabledInOrganization()) + if err != nil { + return err + } + } + return nil +} +// SetDisabledForGroup sets the disabledForGroup property value. The ID of a Microsoft Entra group, of which the specified type of insights are disabled for its members. The default value is null. Optional. +func (m *InsightsSettings) SetDisabledForGroup(value *string)() { + err := m.GetBackingStore().Set("disabledForGroup", value) + if err != nil { + panic(err) + } +} +// SetIsEnabledInOrganization sets the isEnabledInOrganization property value. true if insights of the specified type are enabled for the organization; false if insights of the specified type are disabled for all users without exceptions. The default value is true. Optional. +func (m *InsightsSettings) SetIsEnabledInOrganization(value *bool)() { + err := m.GetBackingStore().Set("isEnabledInOrganization", value) + if err != nil { + panic(err) + } +} +type InsightsSettingsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisabledForGroup()(*string) + GetIsEnabledInOrganization()(*bool) + SetDisabledForGroup(value *string)() + SetIsEnabledInOrganization(value *bool)() +} diff --git a/models/item_insights.go b/models/item_insights.go new file mode 100644 index 0000000000..99295ddb0d --- /dev/null +++ b/models/item_insights.go @@ -0,0 +1,39 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ItemInsights struct { + OfficeGraphInsights +} +// NewItemInsights instantiates a new ItemInsights and sets the default values. +func NewItemInsights()(*ItemInsights) { + m := &ItemInsights{ + OfficeGraphInsights: *NewOfficeGraphInsights(), + } + return m +} +// CreateItemInsightsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemInsightsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemInsights(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemInsights) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.OfficeGraphInsights.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *ItemInsights) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.OfficeGraphInsights.Serialize(writer) + if err != nil { + return err + } + return nil +} +type ItemInsightsable interface { + OfficeGraphInsightsable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/models/meeting_participant_info.go b/models/meeting_participant_info.go index cff70959f7..8e6412e56e 100644 --- a/models/meeting_participant_info.go +++ b/models/meeting_participant_info.go @@ -20,6 +20,24 @@ func NewMeetingParticipantInfo()(*MeetingParticipantInfo) { // CreateMeetingParticipantInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateMeetingParticipantInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.virtualEventPresenterInfo": + return NewVirtualEventPresenterInfo(), nil + } + } + } + } return NewMeetingParticipantInfo(), nil } // GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. diff --git a/models/native_authentication_apis_enabled.go b/models/native_authentication_apis_enabled.go new file mode 100644 index 0000000000..5a49d2cda2 --- /dev/null +++ b/models/native_authentication_apis_enabled.go @@ -0,0 +1,51 @@ +package models +import ( + "math" + "strings" +) +type NativeAuthenticationApisEnabled int + +const ( + NONE_NATIVEAUTHENTICATIONAPISENABLED = 1 + ALL_NATIVEAUTHENTICATIONAPISENABLED = 2 + UNKNOWNFUTUREVALUE_NATIVEAUTHENTICATIONAPISENABLED = 4 +) + +func (i NativeAuthenticationApisEnabled) String() string { + var values []string + options := []string{"none", "all", "unknownFutureValue"} + for p := 0; p < 3; p++ { + mantis := NativeAuthenticationApisEnabled(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseNativeAuthenticationApisEnabled(v string) (any, error) { + var result NativeAuthenticationApisEnabled + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "none": + result |= NONE_NATIVEAUTHENTICATIONAPISENABLED + case "all": + result |= ALL_NATIVEAUTHENTICATIONAPISENABLED + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_NATIVEAUTHENTICATIONAPISENABLED + default: + return nil, nil + } + } + return &result, nil +} +func SerializeNativeAuthenticationApisEnabled(values []NativeAuthenticationApisEnabled) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i NativeAuthenticationApisEnabled) isMultiValue() bool { + return true +} diff --git a/models/office_graph_insights.go b/models/office_graph_insights.go index 0208da347a..8d72582273 100644 --- a/models/office_graph_insights.go +++ b/models/office_graph_insights.go @@ -17,6 +17,24 @@ func NewOfficeGraphInsights()(*OfficeGraphInsights) { // CreateOfficeGraphInsightsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateOfficeGraphInsightsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.itemInsights": + return NewItemInsights(), nil + } + } + } + } return NewOfficeGraphInsights(), nil } // GetFieldDeserializers the deserialization information for the current model diff --git a/models/people_admin_settings.go b/models/people_admin_settings.go index 285bc43a05..f22c65cf89 100644 --- a/models/people_admin_settings.go +++ b/models/people_admin_settings.go @@ -23,6 +23,16 @@ func CreatePeopleAdminSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d2 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *PeopleAdminSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.Entity.GetFieldDeserializers() + res["itemInsights"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateInsightsSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetItemInsights(val.(InsightsSettingsable)) + } + return nil + } res["profileCardProperties"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateProfileCardPropertyFromDiscriminatorValue) if err != nil { @@ -51,6 +61,18 @@ func (m *PeopleAdminSettings) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetItemInsights gets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. +// returns a InsightsSettingsable when successful +func (m *PeopleAdminSettings) GetItemInsights()(InsightsSettingsable) { + val, err := m.GetBackingStore().Get("itemInsights") + if err != nil { + panic(err) + } + if val != nil { + return val.(InsightsSettingsable) + } + return nil +} // GetProfileCardProperties gets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. // returns a []ProfileCardPropertyable when successful func (m *PeopleAdminSettings) GetProfileCardProperties()([]ProfileCardPropertyable) { @@ -81,6 +103,12 @@ func (m *PeopleAdminSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef if err != nil { return err } + { + err = writer.WriteObjectValue("itemInsights", m.GetItemInsights()) + if err != nil { + return err + } + } if m.GetProfileCardProperties() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetProfileCardProperties())) for i, v := range m.GetProfileCardProperties() { @@ -101,6 +129,13 @@ func (m *PeopleAdminSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } +// SetItemInsights sets the itemInsights property value. Represents administrator settings that manage the support for item insights in an organization. +func (m *PeopleAdminSettings) SetItemInsights(value InsightsSettingsable)() { + err := m.GetBackingStore().Set("itemInsights", value) + if err != nil { + panic(err) + } +} // SetProfileCardProperties sets the profileCardProperties property value. Contains a collection of the properties an administrator has defined as visible on the Microsoft 365 profile card. func (m *PeopleAdminSettings) SetProfileCardProperties(value []ProfileCardPropertyable)() { err := m.GetBackingStore().Set("profileCardProperties", value) @@ -118,8 +153,10 @@ func (m *PeopleAdminSettings) SetPronouns(value PronounsSettingsable)() { type PeopleAdminSettingsable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetItemInsights()(InsightsSettingsable) GetProfileCardProperties()([]ProfileCardPropertyable) GetPronouns()(PronounsSettingsable) + SetItemInsights(value InsightsSettingsable)() SetProfileCardProperties(value []ProfileCardPropertyable)() SetPronouns(value PronounsSettingsable)() } diff --git a/models/security/alert_evidence.go b/models/security/alert_evidence.go index 8f3992b278..4d08e0d958 100644 --- a/models/security/alert_evidence.go +++ b/models/security/alert_evidence.go @@ -45,6 +45,10 @@ func CreateAlertEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d2689638 return NewBlobEvidence(), nil case "#microsoft.graph.security.cloudApplicationEvidence": return NewCloudApplicationEvidence(), nil + case "#microsoft.graph.security.cloudLogonRequestEvidence": + return NewCloudLogonRequestEvidence(), nil + case "#microsoft.graph.security.cloudLogonSessionEvidence": + return NewCloudLogonSessionEvidence(), nil case "#microsoft.graph.security.containerEvidence": return NewContainerEvidence(), nil case "#microsoft.graph.security.containerImageEvidence": diff --git a/models/security/cloud_logon_request_evidence.go b/models/security/cloud_logon_request_evidence.go new file mode 100644 index 0000000000..3a7a8cfc45 --- /dev/null +++ b/models/security/cloud_logon_request_evidence.go @@ -0,0 +1,78 @@ +package security + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CloudLogonRequestEvidence struct { + AlertEvidence +} +// NewCloudLogonRequestEvidence instantiates a new CloudLogonRequestEvidence and sets the default values. +func NewCloudLogonRequestEvidence()(*CloudLogonRequestEvidence) { + m := &CloudLogonRequestEvidence{ + AlertEvidence: *NewAlertEvidence(), + } + odataTypeValue := "#microsoft.graph.security.cloudLogonRequestEvidence" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudLogonRequestEvidenceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCloudLogonRequestEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudLogonRequestEvidence(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CloudLogonRequestEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AlertEvidence.GetFieldDeserializers() + res["requestId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRequestId(val) + } + return nil + } + return res +} +// GetRequestId gets the requestId property value. The unique identifier for the sign-in request. +// returns a *string when successful +func (m *CloudLogonRequestEvidence) GetRequestId()(*string) { + val, err := m.GetBackingStore().Get("requestId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudLogonRequestEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AlertEvidence.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("requestId", m.GetRequestId()) + if err != nil { + return err + } + } + return nil +} +// SetRequestId sets the requestId property value. The unique identifier for the sign-in request. +func (m *CloudLogonRequestEvidence) SetRequestId(value *string)() { + err := m.GetBackingStore().Set("requestId", value) + if err != nil { + panic(err) + } +} +type CloudLogonRequestEvidenceable interface { + AlertEvidenceable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetRequestId()(*string) + SetRequestId(value *string)() +} diff --git a/models/security/cloud_logon_session_evidence.go b/models/security/cloud_logon_session_evidence.go new file mode 100644 index 0000000000..913fdb7f85 --- /dev/null +++ b/models/security/cloud_logon_session_evidence.go @@ -0,0 +1,375 @@ +package security + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type CloudLogonSessionEvidence struct { + AlertEvidence +} +// NewCloudLogonSessionEvidence instantiates a new CloudLogonSessionEvidence and sets the default values. +func NewCloudLogonSessionEvidence()(*CloudLogonSessionEvidence) { + m := &CloudLogonSessionEvidence{ + AlertEvidence: *NewAlertEvidence(), + } + odataTypeValue := "#microsoft.graph.security.cloudLogonSessionEvidence" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateCloudLogonSessionEvidenceFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCloudLogonSessionEvidenceFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudLogonSessionEvidence(), nil +} +// GetAccount gets the account property value. The account associated with the sign-in session. +// returns a UserEvidenceable when successful +func (m *CloudLogonSessionEvidence) GetAccount()(UserEvidenceable) { + val, err := m.GetBackingStore().Get("account") + if err != nil { + panic(err) + } + if val != nil { + return val.(UserEvidenceable) + } + return nil +} +// GetBrowser gets the browser property value. The browser that is used for the sign-in, if known. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetBrowser()(*string) { + val, err := m.GetBackingStore().Get("browser") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDeviceName gets the deviceName property value. The friendly name of the device, if known. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetDeviceName()(*string) { + val, err := m.GetBackingStore().Get("deviceName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CloudLogonSessionEvidence) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.AlertEvidence.GetFieldDeserializers() + res["account"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUserEvidenceFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAccount(val.(UserEvidenceable)) + } + return nil + } + res["browser"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetBrowser(val) + } + return nil + } + res["deviceName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDeviceName(val) + } + return nil + } + res["operatingSystem"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOperatingSystem(val) + } + return nil + } + res["previousLogonDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetPreviousLogonDateTime(val) + } + return nil + } + res["protocol"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetProtocol(val) + } + return nil + } + res["sessionId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSessionId(val) + } + return nil + } + res["startUtcDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetStartUtcDateTime(val) + } + return nil + } + res["userAgent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUserAgent(val) + } + return nil + } + return res +} +// GetOperatingSystem gets the operatingSystem property value. The operating system that the device is running, if known. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetOperatingSystem()(*string) { + val, err := m.GetBackingStore().Get("operatingSystem") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPreviousLogonDateTime gets the previousLogonDateTime property value. The previous sign-in time for this account, if known. +// returns a *Time when successful +func (m *CloudLogonSessionEvidence) GetPreviousLogonDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("previousLogonDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetProtocol gets the protocol property value. The authentication protocol that is used in this session, if known. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetProtocol()(*string) { + val, err := m.GetBackingStore().Get("protocol") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetSessionId gets the sessionId property value. The session ID for the account reported in the alert. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetSessionId()(*string) { + val, err := m.GetBackingStore().Get("sessionId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStartUtcDateTime gets the startUtcDateTime property value. The session start time, if known. +// returns a *Time when successful +func (m *CloudLogonSessionEvidence) GetStartUtcDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("startUtcDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetUserAgent gets the userAgent property value. The user agent that is used for the sign-in, if known. +// returns a *string when successful +func (m *CloudLogonSessionEvidence) GetUserAgent()(*string) { + val, err := m.GetBackingStore().Get("userAgent") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudLogonSessionEvidence) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.AlertEvidence.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("account", m.GetAccount()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("browser", m.GetBrowser()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("deviceName", m.GetDeviceName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("operatingSystem", m.GetOperatingSystem()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("previousLogonDateTime", m.GetPreviousLogonDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("protocol", m.GetProtocol()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("sessionId", m.GetSessionId()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("startUtcDateTime", m.GetStartUtcDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("userAgent", m.GetUserAgent()) + if err != nil { + return err + } + } + return nil +} +// SetAccount sets the account property value. The account associated with the sign-in session. +func (m *CloudLogonSessionEvidence) SetAccount(value UserEvidenceable)() { + err := m.GetBackingStore().Set("account", value) + if err != nil { + panic(err) + } +} +// SetBrowser sets the browser property value. The browser that is used for the sign-in, if known. +func (m *CloudLogonSessionEvidence) SetBrowser(value *string)() { + err := m.GetBackingStore().Set("browser", value) + if err != nil { + panic(err) + } +} +// SetDeviceName sets the deviceName property value. The friendly name of the device, if known. +func (m *CloudLogonSessionEvidence) SetDeviceName(value *string)() { + err := m.GetBackingStore().Set("deviceName", value) + if err != nil { + panic(err) + } +} +// SetOperatingSystem sets the operatingSystem property value. The operating system that the device is running, if known. +func (m *CloudLogonSessionEvidence) SetOperatingSystem(value *string)() { + err := m.GetBackingStore().Set("operatingSystem", value) + if err != nil { + panic(err) + } +} +// SetPreviousLogonDateTime sets the previousLogonDateTime property value. The previous sign-in time for this account, if known. +func (m *CloudLogonSessionEvidence) SetPreviousLogonDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("previousLogonDateTime", value) + if err != nil { + panic(err) + } +} +// SetProtocol sets the protocol property value. The authentication protocol that is used in this session, if known. +func (m *CloudLogonSessionEvidence) SetProtocol(value *string)() { + err := m.GetBackingStore().Set("protocol", value) + if err != nil { + panic(err) + } +} +// SetSessionId sets the sessionId property value. The session ID for the account reported in the alert. +func (m *CloudLogonSessionEvidence) SetSessionId(value *string)() { + err := m.GetBackingStore().Set("sessionId", value) + if err != nil { + panic(err) + } +} +// SetStartUtcDateTime sets the startUtcDateTime property value. The session start time, if known. +func (m *CloudLogonSessionEvidence) SetStartUtcDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("startUtcDateTime", value) + if err != nil { + panic(err) + } +} +// SetUserAgent sets the userAgent property value. The user agent that is used for the sign-in, if known. +func (m *CloudLogonSessionEvidence) SetUserAgent(value *string)() { + err := m.GetBackingStore().Set("userAgent", value) + if err != nil { + panic(err) + } +} +type CloudLogonSessionEvidenceable interface { + AlertEvidenceable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAccount()(UserEvidenceable) + GetBrowser()(*string) + GetDeviceName()(*string) + GetOperatingSystem()(*string) + GetPreviousLogonDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetProtocol()(*string) + GetSessionId()(*string) + GetStartUtcDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUserAgent()(*string) + SetAccount(value UserEvidenceable)() + SetBrowser(value *string)() + SetDeviceName(value *string)() + SetOperatingSystem(value *string)() + SetPreviousLogonDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetProtocol(value *string)() + SetSessionId(value *string)() + SetStartUtcDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUserAgent(value *string)() +} diff --git a/models/security/incident.go b/models/security/incident.go index cd6905c67d..0b342e6ed7 100644 --- a/models/security/incident.go +++ b/models/security/incident.go @@ -311,6 +311,16 @@ func (m *Incident) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896 } return nil } + res["summary"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSummary(val) + } + return nil + } res["systemTags"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfPrimitiveValues("string") if err != nil { @@ -423,6 +433,18 @@ func (m *Incident) GetStatus()(*IncidentStatus) { } return nil } +// GetSummary gets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. +// returns a *string when successful +func (m *Incident) GetSummary()(*string) { + val, err := m.GetBackingStore().Get("summary") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetSystemTags gets the systemTags property value. The system tags associated with the incident. // returns a []string when successful func (m *Incident) GetSystemTags()([]string) { @@ -565,6 +587,12 @@ func (m *Incident) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c01 return err } } + { + err = writer.WriteStringValue("summary", m.GetSummary()) + if err != nil { + return err + } + } if m.GetSystemTags() != nil { err = writer.WriteCollectionOfStringValues("systemTags", m.GetSystemTags()) if err != nil { @@ -691,6 +719,13 @@ func (m *Incident) SetStatus(value *IncidentStatus)() { panic(err) } } +// SetSummary sets the summary property value. The overview of an attack. When applicable, the summary contains details of what occurred, impacted assets, and the type of attack. +func (m *Incident) SetSummary(value *string)() { + err := m.GetBackingStore().Set("summary", value) + if err != nil { + panic(err) + } +} // SetSystemTags sets the systemTags property value. The system tags associated with the incident. func (m *Incident) SetSystemTags(value []string)() { err := m.GetBackingStore().Set("systemTags", value) @@ -724,6 +759,7 @@ type Incidentable interface { GetResolvingComment()(*string) GetSeverity()(*AlertSeverity) GetStatus()(*IncidentStatus) + GetSummary()(*string) GetSystemTags()([]string) GetTenantId()(*string) SetAlerts(value []Alertable)() @@ -742,6 +778,7 @@ type Incidentable interface { SetResolvingComment(value *string)() SetSeverity(value *AlertSeverity)() SetStatus(value *IncidentStatus)() + SetSummary(value *string)() SetSystemTags(value []string)() SetTenantId(value *string)() } diff --git a/models/service_storage_quota_breakdown.go b/models/service_storage_quota_breakdown.go new file mode 100644 index 0000000000..22aede6752 --- /dev/null +++ b/models/service_storage_quota_breakdown.go @@ -0,0 +1,39 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ServiceStorageQuotaBreakdown struct { + StorageQuotaBreakdown +} +// NewServiceStorageQuotaBreakdown instantiates a new ServiceStorageQuotaBreakdown and sets the default values. +func NewServiceStorageQuotaBreakdown()(*ServiceStorageQuotaBreakdown) { + m := &ServiceStorageQuotaBreakdown{ + StorageQuotaBreakdown: *NewStorageQuotaBreakdown(), + } + return m +} +// CreateServiceStorageQuotaBreakdownFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateServiceStorageQuotaBreakdownFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServiceStorageQuotaBreakdown(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ServiceStorageQuotaBreakdown) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.StorageQuotaBreakdown.GetFieldDeserializers() + return res +} +// Serialize serializes information the current object +func (m *ServiceStorageQuotaBreakdown) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.StorageQuotaBreakdown.Serialize(writer) + if err != nil { + return err + } + return nil +} +type ServiceStorageQuotaBreakdownable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + StorageQuotaBreakdownable +} diff --git a/models/service_storage_quota_breakdown_collection_response.go b/models/service_storage_quota_breakdown_collection_response.go new file mode 100644 index 0000000000..9f4ac2e6b9 --- /dev/null +++ b/models/service_storage_quota_breakdown_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ServiceStorageQuotaBreakdownCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewServiceStorageQuotaBreakdownCollectionResponse instantiates a new ServiceStorageQuotaBreakdownCollectionResponse and sets the default values. +func NewServiceStorageQuotaBreakdownCollectionResponse()(*ServiceStorageQuotaBreakdownCollectionResponse) { + m := &ServiceStorageQuotaBreakdownCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewServiceStorageQuotaBreakdownCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ServiceStorageQuotaBreakdownCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateServiceStorageQuotaBreakdownFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ServiceStorageQuotaBreakdownable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ServiceStorageQuotaBreakdownable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ServiceStorageQuotaBreakdownable when successful +func (m *ServiceStorageQuotaBreakdownCollectionResponse) GetValue()([]ServiceStorageQuotaBreakdownable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ServiceStorageQuotaBreakdownable) + } + return nil +} +// Serialize serializes information the current object +func (m *ServiceStorageQuotaBreakdownCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ServiceStorageQuotaBreakdownCollectionResponse) SetValue(value []ServiceStorageQuotaBreakdownable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ServiceStorageQuotaBreakdownCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ServiceStorageQuotaBreakdownable) + SetValue(value []ServiceStorageQuotaBreakdownable)() +} diff --git a/models/sign_in.go b/models/sign_in.go index 4dc6a9c00f..0932fade51 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -538,7 +538,7 @@ func (m *SignIn) GetUserId()(*string) { } return nil } -// GetUserPrincipalName gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. Supports $filter (eq, startsWith). +// GetUserPrincipalName gets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). // returns a *string when successful func (m *SignIn) GetUserPrincipalName()(*string) { val, err := m.GetBackingStore().Get("userPrincipalName") @@ -861,7 +861,7 @@ func (m *SignIn) SetUserId(value *string)() { panic(err) } } -// SetUserPrincipalName sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. Supports $filter (eq, startsWith). +// SetUserPrincipalName sets the userPrincipalName property value. User principal name of the user that initiated the sign-in. This value is always in lowercase. For guest users whose values in the user object typically contain #EXT# before the domain part, this property stores the value in both lowercase and the 'true' format. For example, while the user object stores AdeleVance_fabrikam.com#EXT#@contoso.com, the sign-in logs store adelevance@fabrikam.com. Supports $filter (eq, startsWith). func (m *SignIn) SetUserPrincipalName(value *string)() { err := m.GetBackingStore().Set("userPrincipalName", value) if err != nil { diff --git a/models/storage.go b/models/storage.go index aa76db82b3..5fc2737812 100644 --- a/models/storage.go +++ b/models/storage.go @@ -64,6 +64,16 @@ func (m *Storage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268963 } return nil } + res["settings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateStorageSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetSettings(val.(StorageSettingsable)) + } + return nil + } return res } // GetFileStorage gets the fileStorage property value. The fileStorage property @@ -90,6 +100,18 @@ func (m *Storage) GetOdataType()(*string) { } return nil } +// GetSettings gets the settings property value. The settings property +// returns a StorageSettingsable when successful +func (m *Storage) GetSettings()(StorageSettingsable) { + val, err := m.GetBackingStore().Get("settings") + if err != nil { + panic(err) + } + if val != nil { + return val.(StorageSettingsable) + } + return nil +} // Serialize serializes information the current object func (m *Storage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { @@ -104,6 +126,12 @@ func (m *Storage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010 return err } } + { + err := writer.WriteObjectValue("settings", m.GetSettings()) + if err != nil { + return err + } + } { err := writer.WriteAdditionalData(m.GetAdditionalData()) if err != nil { @@ -137,6 +165,13 @@ func (m *Storage) SetOdataType(value *string)() { panic(err) } } +// SetSettings sets the settings property value. The settings property +func (m *Storage) SetSettings(value StorageSettingsable)() { + err := m.GetBackingStore().Set("settings", value) + if err != nil { + panic(err) + } +} type Storageable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel @@ -144,7 +179,9 @@ type Storageable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetFileStorage()(FileStorageable) GetOdataType()(*string) + GetSettings()(StorageSettingsable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetFileStorage(value FileStorageable)() SetOdataType(value *string)() + SetSettings(value StorageSettingsable)() } diff --git a/models/storage_quota_breakdown.go b/models/storage_quota_breakdown.go new file mode 100644 index 0000000000..c35cba823f --- /dev/null +++ b/models/storage_quota_breakdown.go @@ -0,0 +1,168 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type StorageQuotaBreakdown struct { + Entity +} +// NewStorageQuotaBreakdown instantiates a new StorageQuotaBreakdown and sets the default values. +func NewStorageQuotaBreakdown()(*StorageQuotaBreakdown) { + m := &StorageQuotaBreakdown{ + Entity: *NewEntity(), + } + return m +} +// CreateStorageQuotaBreakdownFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateStorageQuotaBreakdownFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.serviceStorageQuotaBreakdown": + return NewServiceStorageQuotaBreakdown(), nil + } + } + } + } + return NewStorageQuotaBreakdown(), nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *StorageQuotaBreakdown) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *StorageQuotaBreakdown) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["manageWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetManageWebUrl(val) + } + return nil + } + res["used"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetUsed(val) + } + return nil + } + return res +} +// GetManageWebUrl gets the manageWebUrl property value. The manageWebUrl property +// returns a *string when successful +func (m *StorageQuotaBreakdown) GetManageWebUrl()(*string) { + val, err := m.GetBackingStore().Get("manageWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUsed gets the used property value. The used property +// returns a *int64 when successful +func (m *StorageQuotaBreakdown) GetUsed()(*int64) { + val, err := m.GetBackingStore().Get("used") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *StorageQuotaBreakdown) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("manageWebUrl", m.GetManageWebUrl()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("used", m.GetUsed()) + if err != nil { + return err + } + } + return nil +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *StorageQuotaBreakdown) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetManageWebUrl sets the manageWebUrl property value. The manageWebUrl property +func (m *StorageQuotaBreakdown) SetManageWebUrl(value *string)() { + err := m.GetBackingStore().Set("manageWebUrl", value) + if err != nil { + panic(err) + } +} +// SetUsed sets the used property value. The used property +func (m *StorageQuotaBreakdown) SetUsed(value *int64)() { + err := m.GetBackingStore().Set("used", value) + if err != nil { + panic(err) + } +} +type StorageQuotaBreakdownable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetManageWebUrl()(*string) + GetUsed()(*int64) + SetDisplayName(value *string)() + SetManageWebUrl(value *string)() + SetUsed(value *int64)() +} diff --git a/models/storage_settings.go b/models/storage_settings.go new file mode 100644 index 0000000000..a5a9ff1d03 --- /dev/null +++ b/models/storage_settings.go @@ -0,0 +1,76 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type StorageSettings struct { + Entity +} +// NewStorageSettings instantiates a new StorageSettings and sets the default values. +func NewStorageSettings()(*StorageSettings) { + m := &StorageSettings{ + Entity: *NewEntity(), + } + return m +} +// CreateStorageSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateStorageSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewStorageSettings(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *StorageSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["quota"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUnifiedStorageQuotaFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetQuota(val.(UnifiedStorageQuotaable)) + } + return nil + } + return res +} +// GetQuota gets the quota property value. The quota property +// returns a UnifiedStorageQuotaable when successful +func (m *StorageSettings) GetQuota()(UnifiedStorageQuotaable) { + val, err := m.GetBackingStore().Get("quota") + if err != nil { + panic(err) + } + if val != nil { + return val.(UnifiedStorageQuotaable) + } + return nil +} +// Serialize serializes information the current object +func (m *StorageSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("quota", m.GetQuota()) + if err != nil { + return err + } + } + return nil +} +// SetQuota sets the quota property value. The quota property +func (m *StorageSettings) SetQuota(value UnifiedStorageQuotaable)() { + err := m.GetBackingStore().Set("quota", value) + if err != nil { + panic(err) + } +} +type StorageSettingsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetQuota()(UnifiedStorageQuotaable) + SetQuota(value UnifiedStorageQuotaable)() +} diff --git a/models/synchronization_schedule.go b/models/synchronization_schedule.go index 59cc80cbf9..3ee833c886 100644 --- a/models/synchronization_schedule.go +++ b/models/synchronization_schedule.go @@ -99,7 +99,7 @@ func (m *SynchronizationSchedule) GetFieldDeserializers()(map[string]func(i878a8 } return res } -// GetInterval gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. +// GetInterval gets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. // returns a *ISODuration when successful func (m *SynchronizationSchedule) GetInterval()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration) { val, err := m.GetBackingStore().Get("interval") @@ -188,7 +188,7 @@ func (m *SynchronizationSchedule) SetExpiration(value *i336074805fc853987abe6f7f panic(err) } } -// SetInterval sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, PT1M represents a period of one month. +// SetInterval sets the interval property value. The interval between synchronization iterations. The value is represented in ISO 8601 format for durations. For example, P1M represents a period of one month and PT1M represents a period of one minute. func (m *SynchronizationSchedule) SetInterval(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ISODuration)() { err := m.GetBackingStore().Set("interval", value) if err != nil { diff --git a/models/teams_async_operation_type.go b/models/teams_async_operation_type.go index 0d97c96f16..468c99c118 100644 --- a/models/teams_async_operation_type.go +++ b/models/teams_async_operation_type.go @@ -10,10 +10,12 @@ const ( UNKNOWNFUTUREVALUE_TEAMSASYNCOPERATIONTYPE TEAMIFYGROUP_TEAMSASYNCOPERATIONTYPE CREATECHANNEL_TEAMSASYNCOPERATIONTYPE + ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE ) func (i TeamsAsyncOperationType) String() string { - return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel"}[i] + return []string{"invalid", "cloneTeam", "archiveTeam", "unarchiveTeam", "createTeam", "unknownFutureValue", "teamifyGroup", "createChannel", "archiveChannel", "unarchiveChannel"}[i] } func ParseTeamsAsyncOperationType(v string) (any, error) { result := INVALID_TEAMSASYNCOPERATIONTYPE @@ -34,6 +36,10 @@ func ParseTeamsAsyncOperationType(v string) (any, error) { result = TEAMIFYGROUP_TEAMSASYNCOPERATIONTYPE case "createChannel": result = CREATECHANNEL_TEAMSASYNCOPERATIONTYPE + case "archiveChannel": + result = ARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE + case "unarchiveChannel": + result = UNARCHIVECHANNEL_TEAMSASYNCOPERATIONTYPE default: return nil, nil } diff --git a/models/teamwork.go b/models/teamwork.go index b5b5669378..d5aaa735fd 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -139,7 +139,7 @@ func (m *Teamwork) GetIsTeamsEnabled()(*bool) { } return nil } -// GetRegion gets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. +// GetRegion gets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. // returns a *string when successful func (m *Teamwork) GetRegion()(*string) { val, err := m.GetBackingStore().Get("region") @@ -258,7 +258,7 @@ func (m *Teamwork) SetIsTeamsEnabled(value *bool)() { panic(err) } } -// SetRegion sets the region property value. Represents the region of the organization. > The region property contains the organization's or the user's region. The property contains the user's region (if available) for users who have a valid multigeo license. For users without multigeo licenses, the region property contains the organization's region. +// SetRegion sets the region property value. Represents the region of the organization or the tenant. The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. func (m *Teamwork) SetRegion(value *string)() { err := m.GetBackingStore().Set("region", value) if err != nil { diff --git a/models/tenant_app_management_policy.go b/models/tenant_app_management_policy.go index 8b05839f31..b6f7153a50 100644 --- a/models/tenant_app_management_policy.go +++ b/models/tenant_app_management_policy.go @@ -22,14 +22,14 @@ func CreateTenantAppManagementPolicyFromDiscriminatorValue(parseNode i878a80d233 return NewTenantAppManagementPolicy(), nil } // GetApplicationRestrictions gets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. -// returns a AppManagementConfigurationable when successful -func (m *TenantAppManagementPolicy) GetApplicationRestrictions()(AppManagementConfigurationable) { +// returns a AppManagementApplicationConfigurationable when successful +func (m *TenantAppManagementPolicy) GetApplicationRestrictions()(AppManagementApplicationConfigurationable) { val, err := m.GetBackingStore().Get("applicationRestrictions") if err != nil { panic(err) } if val != nil { - return val.(AppManagementConfigurationable) + return val.(AppManagementApplicationConfigurationable) } return nil } @@ -38,12 +38,12 @@ func (m *TenantAppManagementPolicy) GetApplicationRestrictions()(AppManagementCo func (m *TenantAppManagementPolicy) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.PolicyBase.GetFieldDeserializers() res["applicationRestrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAppManagementConfigurationFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateAppManagementApplicationConfigurationFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetApplicationRestrictions(val.(AppManagementConfigurationable)) + m.SetApplicationRestrictions(val.(AppManagementApplicationConfigurationable)) } return nil } @@ -58,12 +58,12 @@ func (m *TenantAppManagementPolicy) GetFieldDeserializers()(map[string]func(i878 return nil } res["servicePrincipalRestrictions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateAppManagementConfigurationFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateAppManagementServicePrincipalConfigurationFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetServicePrincipalRestrictions(val.(AppManagementConfigurationable)) + m.SetServicePrincipalRestrictions(val.(AppManagementServicePrincipalConfigurationable)) } return nil } @@ -82,14 +82,14 @@ func (m *TenantAppManagementPolicy) GetIsEnabled()(*bool) { return nil } // GetServicePrincipalRestrictions gets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. -// returns a AppManagementConfigurationable when successful -func (m *TenantAppManagementPolicy) GetServicePrincipalRestrictions()(AppManagementConfigurationable) { +// returns a AppManagementServicePrincipalConfigurationable when successful +func (m *TenantAppManagementPolicy) GetServicePrincipalRestrictions()(AppManagementServicePrincipalConfigurationable) { val, err := m.GetBackingStore().Get("servicePrincipalRestrictions") if err != nil { panic(err) } if val != nil { - return val.(AppManagementConfigurationable) + return val.(AppManagementServicePrincipalConfigurationable) } return nil } @@ -120,7 +120,7 @@ func (m *TenantAppManagementPolicy) Serialize(writer i878a80d2330e89d26896388a3f return nil } // SetApplicationRestrictions sets the applicationRestrictions property value. Restrictions that apply as default to all application objects in the tenant. -func (m *TenantAppManagementPolicy) SetApplicationRestrictions(value AppManagementConfigurationable)() { +func (m *TenantAppManagementPolicy) SetApplicationRestrictions(value AppManagementApplicationConfigurationable)() { err := m.GetBackingStore().Set("applicationRestrictions", value) if err != nil { panic(err) @@ -134,7 +134,7 @@ func (m *TenantAppManagementPolicy) SetIsEnabled(value *bool)() { } } // SetServicePrincipalRestrictions sets the servicePrincipalRestrictions property value. Restrictions that apply as default to all service principal objects in the tenant. -func (m *TenantAppManagementPolicy) SetServicePrincipalRestrictions(value AppManagementConfigurationable)() { +func (m *TenantAppManagementPolicy) SetServicePrincipalRestrictions(value AppManagementServicePrincipalConfigurationable)() { err := m.GetBackingStore().Set("servicePrincipalRestrictions", value) if err != nil { panic(err) @@ -143,10 +143,10 @@ func (m *TenantAppManagementPolicy) SetServicePrincipalRestrictions(value AppMan type TenantAppManagementPolicyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable PolicyBaseable - GetApplicationRestrictions()(AppManagementConfigurationable) + GetApplicationRestrictions()(AppManagementApplicationConfigurationable) GetIsEnabled()(*bool) - GetServicePrincipalRestrictions()(AppManagementConfigurationable) - SetApplicationRestrictions(value AppManagementConfigurationable)() + GetServicePrincipalRestrictions()(AppManagementServicePrincipalConfigurationable) + SetApplicationRestrictions(value AppManagementApplicationConfigurationable)() SetIsEnabled(value *bool)() - SetServicePrincipalRestrictions(value AppManagementConfigurationable)() + SetServicePrincipalRestrictions(value AppManagementServicePrincipalConfigurationable)() } diff --git a/models/unified_role_assignment.go b/models/unified_role_assignment.go index 77b55d23ef..b2047dd983 100644 --- a/models/unified_role_assignment.go +++ b/models/unified_role_assignment.go @@ -55,7 +55,7 @@ func (m *UnifiedRoleAssignment) GetCondition()(*string) { } return nil } -// GetDirectoryScope gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand. +// GetDirectoryScope gets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. // returns a DirectoryObjectable when successful func (m *UnifiedRoleAssignment) GetDirectoryScope()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("directoryScope") @@ -175,7 +175,7 @@ func (m *UnifiedRoleAssignment) GetFieldDeserializers()(map[string]func(i878a80d } return res } -// GetPrincipal gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand. +// GetPrincipal gets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. // returns a DirectoryObjectable when successful func (m *UnifiedRoleAssignment) GetPrincipal()(DirectoryObjectable) { val, err := m.GetBackingStore().Get("principal") @@ -199,7 +199,7 @@ func (m *UnifiedRoleAssignment) GetPrincipalId()(*string) { } return nil } -// GetRoleDefinition gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. +// GetRoleDefinition gets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. // returns a UnifiedRoleDefinitionable when successful func (m *UnifiedRoleAssignment) GetRoleDefinition()(UnifiedRoleDefinitionable) { val, err := m.GetBackingStore().Get("roleDefinition") @@ -306,7 +306,7 @@ func (m *UnifiedRoleAssignment) SetCondition(value *string)() { panic(err) } } -// SetDirectoryScope sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand. +// SetDirectoryScope sets the directoryScope property value. The directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. func (m *UnifiedRoleAssignment) SetDirectoryScope(value DirectoryObjectable)() { err := m.GetBackingStore().Set("directoryScope", value) if err != nil { @@ -320,7 +320,7 @@ func (m *UnifiedRoleAssignment) SetDirectoryScopeId(value *string)() { panic(err) } } -// SetPrincipal sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand. +// SetPrincipal sets the principal property value. Referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. func (m *UnifiedRoleAssignment) SetPrincipal(value DirectoryObjectable)() { err := m.GetBackingStore().Set("principal", value) if err != nil { @@ -334,7 +334,7 @@ func (m *UnifiedRoleAssignment) SetPrincipalId(value *string)() { panic(err) } } -// SetRoleDefinition sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. +// SetRoleDefinition sets the roleDefinition property value. The roleDefinition the assignment is for. Supports $expand. func (m *UnifiedRoleAssignment) SetRoleDefinition(value UnifiedRoleDefinitionable)() { err := m.GetBackingStore().Set("roleDefinition", value) if err != nil { diff --git a/models/unified_storage_quota.go b/models/unified_storage_quota.go new file mode 100644 index 0000000000..73d7b71c0f --- /dev/null +++ b/models/unified_storage_quota.go @@ -0,0 +1,310 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UnifiedStorageQuota struct { + Entity +} +// NewUnifiedStorageQuota instantiates a new UnifiedStorageQuota and sets the default values. +func NewUnifiedStorageQuota()(*UnifiedStorageQuota) { + m := &UnifiedStorageQuota{ + Entity: *NewEntity(), + } + return m +} +// CreateUnifiedStorageQuotaFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUnifiedStorageQuotaFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUnifiedStorageQuota(), nil +} +// GetDeleted gets the deleted property value. The deleted property +// returns a *int64 when successful +func (m *UnifiedStorageQuota) GetDeleted()(*int64) { + val, err := m.GetBackingStore().Get("deleted") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UnifiedStorageQuota) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["deleted"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetDeleted(val) + } + return nil + } + res["manageWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetManageWebUrl(val) + } + return nil + } + res["remaining"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetRemaining(val) + } + return nil + } + res["services"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateServiceStorageQuotaBreakdownFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ServiceStorageQuotaBreakdownable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ServiceStorageQuotaBreakdownable) + } + } + m.SetServices(res) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetState(val) + } + return nil + } + res["total"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetTotal(val) + } + return nil + } + res["used"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt64Value() + if err != nil { + return err + } + if val != nil { + m.SetUsed(val) + } + return nil + } + return res +} +// GetManageWebUrl gets the manageWebUrl property value. The manageWebUrl property +// returns a *string when successful +func (m *UnifiedStorageQuota) GetManageWebUrl()(*string) { + val, err := m.GetBackingStore().Get("manageWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRemaining gets the remaining property value. The remaining property +// returns a *int64 when successful +func (m *UnifiedStorageQuota) GetRemaining()(*int64) { + val, err := m.GetBackingStore().Get("remaining") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetServices gets the services property value. The services property +// returns a []ServiceStorageQuotaBreakdownable when successful +func (m *UnifiedStorageQuota) GetServices()([]ServiceStorageQuotaBreakdownable) { + val, err := m.GetBackingStore().Get("services") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ServiceStorageQuotaBreakdownable) + } + return nil +} +// GetState gets the state property value. The state property +// returns a *string when successful +func (m *UnifiedStorageQuota) GetState()(*string) { + val, err := m.GetBackingStore().Get("state") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetTotal gets the total property value. The total property +// returns a *int64 when successful +func (m *UnifiedStorageQuota) GetTotal()(*int64) { + val, err := m.GetBackingStore().Get("total") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// GetUsed gets the used property value. The used property +// returns a *int64 when successful +func (m *UnifiedStorageQuota) GetUsed()(*int64) { + val, err := m.GetBackingStore().Get("used") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int64) + } + return nil +} +// Serialize serializes information the current object +func (m *UnifiedStorageQuota) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt64Value("deleted", m.GetDeleted()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("manageWebUrl", m.GetManageWebUrl()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("remaining", m.GetRemaining()) + if err != nil { + return err + } + } + if m.GetServices() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetServices())) + for i, v := range m.GetServices() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("services", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("state", m.GetState()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("total", m.GetTotal()) + if err != nil { + return err + } + } + { + err = writer.WriteInt64Value("used", m.GetUsed()) + if err != nil { + return err + } + } + return nil +} +// SetDeleted sets the deleted property value. The deleted property +func (m *UnifiedStorageQuota) SetDeleted(value *int64)() { + err := m.GetBackingStore().Set("deleted", value) + if err != nil { + panic(err) + } +} +// SetManageWebUrl sets the manageWebUrl property value. The manageWebUrl property +func (m *UnifiedStorageQuota) SetManageWebUrl(value *string)() { + err := m.GetBackingStore().Set("manageWebUrl", value) + if err != nil { + panic(err) + } +} +// SetRemaining sets the remaining property value. The remaining property +func (m *UnifiedStorageQuota) SetRemaining(value *int64)() { + err := m.GetBackingStore().Set("remaining", value) + if err != nil { + panic(err) + } +} +// SetServices sets the services property value. The services property +func (m *UnifiedStorageQuota) SetServices(value []ServiceStorageQuotaBreakdownable)() { + err := m.GetBackingStore().Set("services", value) + if err != nil { + panic(err) + } +} +// SetState sets the state property value. The state property +func (m *UnifiedStorageQuota) SetState(value *string)() { + err := m.GetBackingStore().Set("state", value) + if err != nil { + panic(err) + } +} +// SetTotal sets the total property value. The total property +func (m *UnifiedStorageQuota) SetTotal(value *int64)() { + err := m.GetBackingStore().Set("total", value) + if err != nil { + panic(err) + } +} +// SetUsed sets the used property value. The used property +func (m *UnifiedStorageQuota) SetUsed(value *int64)() { + err := m.GetBackingStore().Set("used", value) + if err != nil { + panic(err) + } +} +type UnifiedStorageQuotaable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDeleted()(*int64) + GetManageWebUrl()(*string) + GetRemaining()(*int64) + GetServices()([]ServiceStorageQuotaBreakdownable) + GetState()(*string) + GetTotal()(*int64) + GetUsed()(*int64) + SetDeleted(value *int64)() + SetManageWebUrl(value *string)() + SetRemaining(value *int64)() + SetServices(value []ServiceStorageQuotaBreakdownable)() + SetState(value *string)() + SetTotal(value *int64)() + SetUsed(value *int64)() +} diff --git a/models/user.go b/models/user.go index 972dcc03ca..4c67b0cbcb 100644 --- a/models/user.go +++ b/models/user.go @@ -1225,12 +1225,12 @@ func (m *User) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a return nil } res["insights"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateOfficeGraphInsightsFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateItemInsightsFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetInsights(val.(OfficeGraphInsightsable)) + m.SetInsights(val.(ItemInsightsable)) } return nil } @@ -2223,14 +2223,14 @@ func (m *User) GetInferenceClassification()(InferenceClassificationable) { return nil } // GetInsights gets the insights property value. The insights property -// returns a OfficeGraphInsightsable when successful -func (m *User) GetInsights()(OfficeGraphInsightsable) { +// returns a ItemInsightsable when successful +func (m *User) GetInsights()(ItemInsightsable) { val, err := m.GetBackingStore().Get("insights") if err != nil { panic(err) } if val != nil { - return val.(OfficeGraphInsightsable) + return val.(ItemInsightsable) } return nil } @@ -4503,7 +4503,7 @@ func (m *User) SetInferenceClassification(value InferenceClassificationable)() { } } // SetInsights sets the insights property value. The insights property -func (m *User) SetInsights(value OfficeGraphInsightsable)() { +func (m *User) SetInsights(value ItemInsightsable)() { err := m.GetBackingStore().Set("insights", value) if err != nil { panic(err) @@ -5082,7 +5082,7 @@ type Userable interface { GetIdentities()([]ObjectIdentityable) GetImAddresses()([]string) GetInferenceClassification()(InferenceClassificationable) - GetInsights()(OfficeGraphInsightsable) + GetInsights()(ItemInsightsable) GetInterests()([]string) GetIsResourceAccount()(*bool) GetJobTitle()(*string) @@ -5209,7 +5209,7 @@ type Userable interface { SetIdentities(value []ObjectIdentityable)() SetImAddresses(value []string)() SetInferenceClassification(value InferenceClassificationable)() - SetInsights(value OfficeGraphInsightsable)() + SetInsights(value ItemInsightsable)() SetInterests(value []string)() SetIsResourceAccount(value *bool)() SetJobTitle(value *string)() diff --git a/models/user_insights_settings.go b/models/user_insights_settings.go new file mode 100644 index 0000000000..ee3961d7ca --- /dev/null +++ b/models/user_insights_settings.go @@ -0,0 +1,76 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UserInsightsSettings struct { + Entity +} +// NewUserInsightsSettings instantiates a new UserInsightsSettings and sets the default values. +func NewUserInsightsSettings()(*UserInsightsSettings) { + m := &UserInsightsSettings{ + Entity: *NewEntity(), + } + return m +} +// CreateUserInsightsSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUserInsightsSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUserInsightsSettings(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UserInsightsSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["isEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsEnabled(val) + } + return nil + } + return res +} +// GetIsEnabled gets the isEnabled property value. The isEnabled property +// returns a *bool when successful +func (m *UserInsightsSettings) GetIsEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *UserInsightsSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("isEnabled", m.GetIsEnabled()) + if err != nil { + return err + } + } + return nil +} +// SetIsEnabled sets the isEnabled property value. The isEnabled property +func (m *UserInsightsSettings) SetIsEnabled(value *bool)() { + err := m.GetBackingStore().Set("isEnabled", value) + if err != nil { + panic(err) + } +} +type UserInsightsSettingsable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetIsEnabled()(*bool) + SetIsEnabled(value *bool)() +} diff --git a/models/user_settings.go b/models/user_settings.go index 399b5d4427..bb2ae59f33 100644 --- a/models/user_settings.go +++ b/models/user_settings.go @@ -67,6 +67,16 @@ func (m *UserSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["itemInsights"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUserInsightsSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetItemInsights(val.(UserInsightsSettingsable)) + } + return nil + } res["shiftPreferences"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateShiftPreferencesFromDiscriminatorValue) if err != nil { @@ -77,6 +87,16 @@ func (m *UserSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["storage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUserStorageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetStorage(val.(UserStorageable)) + } + return nil + } res["windows"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateWindowsSettingFromDiscriminatorValue) if err != nil { @@ -95,6 +115,18 @@ func (m *UserSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } +// GetItemInsights gets the itemInsights property value. The itemInsights property +// returns a UserInsightsSettingsable when successful +func (m *UserSettings) GetItemInsights()(UserInsightsSettingsable) { + val, err := m.GetBackingStore().Get("itemInsights") + if err != nil { + panic(err) + } + if val != nil { + return val.(UserInsightsSettingsable) + } + return nil +} // GetShiftPreferences gets the shiftPreferences property value. The shiftPreferences property // returns a ShiftPreferencesable when successful func (m *UserSettings) GetShiftPreferences()(ShiftPreferencesable) { @@ -107,6 +139,18 @@ func (m *UserSettings) GetShiftPreferences()(ShiftPreferencesable) { } return nil } +// GetStorage gets the storage property value. The storage property +// returns a UserStorageable when successful +func (m *UserSettings) GetStorage()(UserStorageable) { + val, err := m.GetBackingStore().Get("storage") + if err != nil { + panic(err) + } + if val != nil { + return val.(UserStorageable) + } + return nil +} // GetWindows gets the windows property value. The windows property // returns a []WindowsSettingable when successful func (m *UserSettings) GetWindows()([]WindowsSettingable) { @@ -137,12 +181,24 @@ func (m *UserSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + { + err = writer.WriteObjectValue("itemInsights", m.GetItemInsights()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("shiftPreferences", m.GetShiftPreferences()) if err != nil { return err } } + { + err = writer.WriteObjectValue("storage", m.GetStorage()) + if err != nil { + return err + } + } if m.GetWindows() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetWindows())) for i, v := range m.GetWindows() { @@ -171,6 +227,13 @@ func (m *UserSettings) SetContributionToContentDiscoveryDisabled(value *bool)() panic(err) } } +// SetItemInsights sets the itemInsights property value. The itemInsights property +func (m *UserSettings) SetItemInsights(value UserInsightsSettingsable)() { + err := m.GetBackingStore().Set("itemInsights", value) + if err != nil { + panic(err) + } +} // SetShiftPreferences sets the shiftPreferences property value. The shiftPreferences property func (m *UserSettings) SetShiftPreferences(value ShiftPreferencesable)() { err := m.GetBackingStore().Set("shiftPreferences", value) @@ -178,6 +241,13 @@ func (m *UserSettings) SetShiftPreferences(value ShiftPreferencesable)() { panic(err) } } +// SetStorage sets the storage property value. The storage property +func (m *UserSettings) SetStorage(value UserStorageable)() { + err := m.GetBackingStore().Set("storage", value) + if err != nil { + panic(err) + } +} // SetWindows sets the windows property value. The windows property func (m *UserSettings) SetWindows(value []WindowsSettingable)() { err := m.GetBackingStore().Set("windows", value) @@ -190,10 +260,14 @@ type UserSettingsable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetContributionToContentDiscoveryAsOrganizationDisabled()(*bool) GetContributionToContentDiscoveryDisabled()(*bool) + GetItemInsights()(UserInsightsSettingsable) GetShiftPreferences()(ShiftPreferencesable) + GetStorage()(UserStorageable) GetWindows()([]WindowsSettingable) SetContributionToContentDiscoveryAsOrganizationDisabled(value *bool)() SetContributionToContentDiscoveryDisabled(value *bool)() + SetItemInsights(value UserInsightsSettingsable)() SetShiftPreferences(value ShiftPreferencesable)() + SetStorage(value UserStorageable)() SetWindows(value []WindowsSettingable)() } diff --git a/models/user_storage.go b/models/user_storage.go new file mode 100644 index 0000000000..2bdfc843c0 --- /dev/null +++ b/models/user_storage.go @@ -0,0 +1,76 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UserStorage struct { + Entity +} +// NewUserStorage instantiates a new UserStorage and sets the default values. +func NewUserStorage()(*UserStorage) { + m := &UserStorage{ + Entity: *NewEntity(), + } + return m +} +// CreateUserStorageFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUserStorageFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUserStorage(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UserStorage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["quota"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUnifiedStorageQuotaFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetQuota(val.(UnifiedStorageQuotaable)) + } + return nil + } + return res +} +// GetQuota gets the quota property value. The quota property +// returns a UnifiedStorageQuotaable when successful +func (m *UserStorage) GetQuota()(UnifiedStorageQuotaable) { + val, err := m.GetBackingStore().Get("quota") + if err != nil { + panic(err) + } + if val != nil { + return val.(UnifiedStorageQuotaable) + } + return nil +} +// Serialize serializes information the current object +func (m *UserStorage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("quota", m.GetQuota()) + if err != nil { + return err + } + } + return nil +} +// SetQuota sets the quota property value. The quota property +func (m *UserStorage) SetQuota(value UnifiedStorageQuotaable)() { + err := m.GetBackingStore().Set("quota", value) + if err != nil { + panic(err) + } +} +type UserStorageable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetQuota()(UnifiedStorageQuotaable) + SetQuota(value UnifiedStorageQuotaable)() +} diff --git a/models/user_teamwork.go b/models/user_teamwork.go index bf45d58a6a..42a4fe569b 100644 --- a/models/user_teamwork.go +++ b/models/user_teamwork.go @@ -101,7 +101,7 @@ func (m *UserTeamwork) GetInstalledApps()([]UserScopeTeamsAppInstallationable) { } return nil } -// GetLocale gets the locale property value. The chosen locale of a user in Microsoft Teams. +// GetLocale gets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A user’s locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. // returns a *string when successful func (m *UserTeamwork) GetLocale()(*string) { val, err := m.GetBackingStore().Get("locale") @@ -113,7 +113,7 @@ func (m *UserTeamwork) GetLocale()(*string) { } return nil } -// GetRegion gets the region property value. The region of the user in Microsoft Teams. +// GetRegion gets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. // returns a *string when successful func (m *UserTeamwork) GetRegion()(*string) { val, err := m.GetBackingStore().Get("region") @@ -183,14 +183,14 @@ func (m *UserTeamwork) SetInstalledApps(value []UserScopeTeamsAppInstallationabl panic(err) } } -// SetLocale sets the locale property value. The chosen locale of a user in Microsoft Teams. +// SetLocale sets the locale property value. Represents the location that a user selected in Microsoft Teams and doesn't follow the Office's locale setting. A user’s locale is represented by their preferred language and country or region. For example, en-us. The language component follows two-letter codes as defined in ISO 639-1, and the country component follows two-letter codes as defined in ISO 3166-1 alpha-2. func (m *UserTeamwork) SetLocale(value *string)() { err := m.GetBackingStore().Set("locale", value) if err != nil { panic(err) } } -// SetRegion sets the region property value. The region of the user in Microsoft Teams. +// SetRegion sets the region property value. Represents the region of the organization or the user. For users with multigeo licenses, the property contains the user's region (if available). For users without multigeo licenses, the property contains the organization's region.The region value can be any region supported by the Teams payload. The possible values are: Americas, Europe and MiddleEast, Asia Pacific, UAE, Australia, Brazil, Canada, Switzerland, Germany, France, India, Japan, South Korea, Norway, Singapore, United Kingdom, South Africa, Sweden, Qatar, Poland, Italy, Israel, USGov Community Cloud, USGov Community Cloud High, USGov Department of Defense, and China. func (m *UserTeamwork) SetRegion(value *string)() { err := m.GetBackingStore().Set("region", value) if err != nil { diff --git a/models/virtual_event.go b/models/virtual_event.go index 2d75752902..c2f34b69cf 100644 --- a/models/virtual_event.go +++ b/models/virtual_event.go @@ -29,6 +29,8 @@ func CreateVirtualEventFromDiscriminatorValue(parseNode i878a80d2330e89d26896388 } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.virtualEventTownhall": + return NewVirtualEventTownhall(), nil case "#microsoft.graph.virtualEventWebinar": return NewVirtualEventWebinar(), nil } @@ -129,6 +131,22 @@ func (m *VirtualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return nil } + res["presenters"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventPresenterFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventPresenterable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventPresenterable) + } + } + m.SetPresenters(res) + } + return nil + } res["sessions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVirtualEventSessionFromDiscriminatorValue) if err != nil { @@ -167,6 +185,18 @@ func (m *VirtualEvent) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } +// GetPresenters gets the presenters property value. The presenters property +// returns a []VirtualEventPresenterable when successful +func (m *VirtualEvent) GetPresenters()([]VirtualEventPresenterable) { + val, err := m.GetBackingStore().Get("presenters") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventPresenterable) + } + return nil +} // GetSessions gets the sessions property value. Sessions for the virtual event. // returns a []VirtualEventSessionable when successful func (m *VirtualEvent) GetSessions()([]VirtualEventSessionable) { @@ -233,6 +263,18 @@ func (m *VirtualEvent) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e return err } } + if m.GetPresenters() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetPresenters())) + for i, v := range m.GetPresenters() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("presenters", cast) + if err != nil { + return err + } + } if m.GetSessions() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSessions())) for i, v := range m.GetSessions() { @@ -288,6 +330,13 @@ func (m *VirtualEvent) SetEndDateTime(value DateTimeTimeZoneable)() { panic(err) } } +// SetPresenters sets the presenters property value. The presenters property +func (m *VirtualEvent) SetPresenters(value []VirtualEventPresenterable)() { + err := m.GetBackingStore().Set("presenters", value) + if err != nil { + panic(err) + } +} // SetSessions sets the sessions property value. Sessions for the virtual event. func (m *VirtualEvent) SetSessions(value []VirtualEventSessionable)() { err := m.GetBackingStore().Set("sessions", value) @@ -316,6 +365,7 @@ type VirtualEventable interface { GetDescription()(ItemBodyable) GetDisplayName()(*string) GetEndDateTime()(DateTimeTimeZoneable) + GetPresenters()([]VirtualEventPresenterable) GetSessions()([]VirtualEventSessionable) GetStartDateTime()(DateTimeTimeZoneable) GetStatus()(*VirtualEventStatus) @@ -323,6 +373,7 @@ type VirtualEventable interface { SetDescription(value ItemBodyable)() SetDisplayName(value *string)() SetEndDateTime(value DateTimeTimeZoneable)() + SetPresenters(value []VirtualEventPresenterable)() SetSessions(value []VirtualEventSessionable)() SetStartDateTime(value DateTimeTimeZoneable)() SetStatus(value *VirtualEventStatus)() diff --git a/models/virtual_event_presenter.go b/models/virtual_event_presenter.go new file mode 100644 index 0000000000..9a0c7be855 --- /dev/null +++ b/models/virtual_event_presenter.go @@ -0,0 +1,150 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventPresenter struct { + Entity +} +// NewVirtualEventPresenter instantiates a new VirtualEventPresenter and sets the default values. +func NewVirtualEventPresenter()(*VirtualEventPresenter) { + m := &VirtualEventPresenter{ + Entity: *NewEntity(), + } + return m +} +// CreateVirtualEventPresenterFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventPresenterFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventPresenter(), nil +} +// GetEmail gets the email property value. The email property +// returns a *string when successful +func (m *VirtualEventPresenter) GetEmail()(*string) { + val, err := m.GetBackingStore().Get("email") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventPresenter) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetEmail(val) + } + return nil + } + res["identity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetIdentity(val.(Identityable)) + } + return nil + } + res["presenterDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateVirtualEventPresenterDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPresenterDetails(val.(VirtualEventPresenterDetailsable)) + } + return nil + } + return res +} +// GetIdentity gets the identity property value. The identity property +// returns a Identityable when successful +func (m *VirtualEventPresenter) GetIdentity()(Identityable) { + val, err := m.GetBackingStore().Get("identity") + if err != nil { + panic(err) + } + if val != nil { + return val.(Identityable) + } + return nil +} +// GetPresenterDetails gets the presenterDetails property value. The presenterDetails property +// returns a VirtualEventPresenterDetailsable when successful +func (m *VirtualEventPresenter) GetPresenterDetails()(VirtualEventPresenterDetailsable) { + val, err := m.GetBackingStore().Get("presenterDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(VirtualEventPresenterDetailsable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventPresenter) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("email", m.GetEmail()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("identity", m.GetIdentity()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("presenterDetails", m.GetPresenterDetails()) + if err != nil { + return err + } + } + return nil +} +// SetEmail sets the email property value. The email property +func (m *VirtualEventPresenter) SetEmail(value *string)() { + err := m.GetBackingStore().Set("email", value) + if err != nil { + panic(err) + } +} +// SetIdentity sets the identity property value. The identity property +func (m *VirtualEventPresenter) SetIdentity(value Identityable)() { + err := m.GetBackingStore().Set("identity", value) + if err != nil { + panic(err) + } +} +// SetPresenterDetails sets the presenterDetails property value. The presenterDetails property +func (m *VirtualEventPresenter) SetPresenterDetails(value VirtualEventPresenterDetailsable)() { + err := m.GetBackingStore().Set("presenterDetails", value) + if err != nil { + panic(err) + } +} +type VirtualEventPresenterable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEmail()(*string) + GetIdentity()(Identityable) + GetPresenterDetails()(VirtualEventPresenterDetailsable) + SetEmail(value *string)() + SetIdentity(value Identityable)() + SetPresenterDetails(value VirtualEventPresenterDetailsable)() +} diff --git a/models/virtual_event_presenter_collection_response.go b/models/virtual_event_presenter_collection_response.go new file mode 100644 index 0000000000..7604a9b97e --- /dev/null +++ b/models/virtual_event_presenter_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventPresenterCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewVirtualEventPresenterCollectionResponse instantiates a new VirtualEventPresenterCollectionResponse and sets the default values. +func NewVirtualEventPresenterCollectionResponse()(*VirtualEventPresenterCollectionResponse) { + m := &VirtualEventPresenterCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateVirtualEventPresenterCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventPresenterCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventPresenterCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventPresenterCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventPresenterFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventPresenterable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventPresenterable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []VirtualEventPresenterable when successful +func (m *VirtualEventPresenterCollectionResponse) GetValue()([]VirtualEventPresenterable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventPresenterable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventPresenterCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *VirtualEventPresenterCollectionResponse) SetValue(value []VirtualEventPresenterable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type VirtualEventPresenterCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]VirtualEventPresenterable) + SetValue(value []VirtualEventPresenterable)() +} diff --git a/models/virtual_event_presenter_details.go b/models/virtual_event_presenter_details.go new file mode 100644 index 0000000000..b3ee270e0f --- /dev/null +++ b/models/virtual_event_presenter_details.go @@ -0,0 +1,372 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type VirtualEventPresenterDetails struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewVirtualEventPresenterDetails instantiates a new VirtualEventPresenterDetails and sets the default values. +func NewVirtualEventPresenterDetails()(*VirtualEventPresenterDetails) { + m := &VirtualEventPresenterDetails{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateVirtualEventPresenterDetailsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventPresenterDetailsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventPresenterDetails(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *VirtualEventPresenterDetails) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *VirtualEventPresenterDetails) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetBio gets the bio property value. The bio property +// returns a ItemBodyable when successful +func (m *VirtualEventPresenterDetails) GetBio()(ItemBodyable) { + val, err := m.GetBackingStore().Get("bio") + if err != nil { + panic(err) + } + if val != nil { + return val.(ItemBodyable) + } + return nil +} +// GetCompany gets the company property value. The company property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetCompany()(*string) { + val, err := m.GetBackingStore().Get("company") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventPresenterDetails) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["bio"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateItemBodyFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetBio(val.(ItemBodyable)) + } + return nil + } + res["company"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCompany(val) + } + return nil + } + res["jobTitle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetJobTitle(val) + } + return nil + } + res["linkedInProfileWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLinkedInProfileWebUrl(val) + } + return nil + } + res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetOdataType(val) + } + return nil + } + res["personalSiteWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPersonalSiteWebUrl(val) + } + return nil + } + res["photo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetByteArrayValue() + if err != nil { + return err + } + if val != nil { + m.SetPhoto(val) + } + return nil + } + res["twitterProfileWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetTwitterProfileWebUrl(val) + } + return nil + } + return res +} +// GetJobTitle gets the jobTitle property value. The jobTitle property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetJobTitle()(*string) { + val, err := m.GetBackingStore().Get("jobTitle") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetLinkedInProfileWebUrl gets the linkedInProfileWebUrl property value. The linkedInProfileWebUrl property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetLinkedInProfileWebUrl()(*string) { + val, err := m.GetBackingStore().Get("linkedInProfileWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPersonalSiteWebUrl gets the personalSiteWebUrl property value. The personalSiteWebUrl property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetPersonalSiteWebUrl()(*string) { + val, err := m.GetBackingStore().Get("personalSiteWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPhoto gets the photo property value. The photo property +// returns a []byte when successful +func (m *VirtualEventPresenterDetails) GetPhoto()([]byte) { + val, err := m.GetBackingStore().Get("photo") + if err != nil { + panic(err) + } + if val != nil { + return val.([]byte) + } + return nil +} +// GetTwitterProfileWebUrl gets the twitterProfileWebUrl property value. The twitterProfileWebUrl property +// returns a *string when successful +func (m *VirtualEventPresenterDetails) GetTwitterProfileWebUrl()(*string) { + val, err := m.GetBackingStore().Get("twitterProfileWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventPresenterDetails) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("bio", m.GetBio()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("company", m.GetCompany()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("jobTitle", m.GetJobTitle()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("linkedInProfileWebUrl", m.GetLinkedInProfileWebUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("personalSiteWebUrl", m.GetPersonalSiteWebUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteByteArrayValue("photo", m.GetPhoto()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("twitterProfileWebUrl", m.GetTwitterProfileWebUrl()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *VirtualEventPresenterDetails) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *VirtualEventPresenterDetails) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetBio sets the bio property value. The bio property +func (m *VirtualEventPresenterDetails) SetBio(value ItemBodyable)() { + err := m.GetBackingStore().Set("bio", value) + if err != nil { + panic(err) + } +} +// SetCompany sets the company property value. The company property +func (m *VirtualEventPresenterDetails) SetCompany(value *string)() { + err := m.GetBackingStore().Set("company", value) + if err != nil { + panic(err) + } +} +// SetJobTitle sets the jobTitle property value. The jobTitle property +func (m *VirtualEventPresenterDetails) SetJobTitle(value *string)() { + err := m.GetBackingStore().Set("jobTitle", value) + if err != nil { + panic(err) + } +} +// SetLinkedInProfileWebUrl sets the linkedInProfileWebUrl property value. The linkedInProfileWebUrl property +func (m *VirtualEventPresenterDetails) SetLinkedInProfileWebUrl(value *string)() { + err := m.GetBackingStore().Set("linkedInProfileWebUrl", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *VirtualEventPresenterDetails) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetPersonalSiteWebUrl sets the personalSiteWebUrl property value. The personalSiteWebUrl property +func (m *VirtualEventPresenterDetails) SetPersonalSiteWebUrl(value *string)() { + err := m.GetBackingStore().Set("personalSiteWebUrl", value) + if err != nil { + panic(err) + } +} +// SetPhoto sets the photo property value. The photo property +func (m *VirtualEventPresenterDetails) SetPhoto(value []byte)() { + err := m.GetBackingStore().Set("photo", value) + if err != nil { + panic(err) + } +} +// SetTwitterProfileWebUrl sets the twitterProfileWebUrl property value. The twitterProfileWebUrl property +func (m *VirtualEventPresenterDetails) SetTwitterProfileWebUrl(value *string)() { + err := m.GetBackingStore().Set("twitterProfileWebUrl", value) + if err != nil { + panic(err) + } +} +type VirtualEventPresenterDetailsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetBio()(ItemBodyable) + GetCompany()(*string) + GetJobTitle()(*string) + GetLinkedInProfileWebUrl()(*string) + GetOdataType()(*string) + GetPersonalSiteWebUrl()(*string) + GetPhoto()([]byte) + GetTwitterProfileWebUrl()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetBio(value ItemBodyable)() + SetCompany(value *string)() + SetJobTitle(value *string)() + SetLinkedInProfileWebUrl(value *string)() + SetOdataType(value *string)() + SetPersonalSiteWebUrl(value *string)() + SetPhoto(value []byte)() + SetTwitterProfileWebUrl(value *string)() +} diff --git a/models/virtual_event_presenter_info.go b/models/virtual_event_presenter_info.go new file mode 100644 index 0000000000..d43bf5ae6f --- /dev/null +++ b/models/virtual_event_presenter_info.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventPresenterInfo struct { + MeetingParticipantInfo +} +// NewVirtualEventPresenterInfo instantiates a new VirtualEventPresenterInfo and sets the default values. +func NewVirtualEventPresenterInfo()(*VirtualEventPresenterInfo) { + m := &VirtualEventPresenterInfo{ + MeetingParticipantInfo: *NewMeetingParticipantInfo(), + } + odataTypeValue := "#microsoft.graph.virtualEventPresenterInfo" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVirtualEventPresenterInfoFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventPresenterInfoFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventPresenterInfo(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventPresenterInfo) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MeetingParticipantInfo.GetFieldDeserializers() + res["presenterDetails"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateVirtualEventPresenterDetailsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetPresenterDetails(val.(VirtualEventPresenterDetailsable)) + } + return nil + } + return res +} +// GetPresenterDetails gets the presenterDetails property value. The presenterDetails property +// returns a VirtualEventPresenterDetailsable when successful +func (m *VirtualEventPresenterInfo) GetPresenterDetails()(VirtualEventPresenterDetailsable) { + val, err := m.GetBackingStore().Get("presenterDetails") + if err != nil { + panic(err) + } + if val != nil { + return val.(VirtualEventPresenterDetailsable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventPresenterInfo) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MeetingParticipantInfo.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("presenterDetails", m.GetPresenterDetails()) + if err != nil { + return err + } + } + return nil +} +// SetPresenterDetails sets the presenterDetails property value. The presenterDetails property +func (m *VirtualEventPresenterInfo) SetPresenterDetails(value VirtualEventPresenterDetailsable)() { + err := m.GetBackingStore().Set("presenterDetails", value) + if err != nil { + panic(err) + } +} +type VirtualEventPresenterInfoable interface { + MeetingParticipantInfoable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetPresenterDetails()(VirtualEventPresenterDetailsable) + SetPresenterDetails(value VirtualEventPresenterDetailsable)() +} diff --git a/models/virtual_event_registration.go b/models/virtual_event_registration.go index 00f5224a3d..d6b079f693 100644 --- a/models/virtual_event_registration.go +++ b/models/virtual_event_registration.go @@ -88,6 +88,26 @@ func (m *VirtualEventRegistration) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["preferredLanguage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPreferredLanguage(val) + } + return nil + } + res["preferredTimezone"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetPreferredTimezone(val) + } + return nil + } res["registrationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -114,6 +134,22 @@ func (m *VirtualEventRegistration) GetFieldDeserializers()(map[string]func(i878a } return nil } + res["sessions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventSessionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventSessionable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventSessionable) + } + } + m.SetSessions(res) + } + return nil + } res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseVirtualEventAttendeeRegistrationStatus) if err != nil { @@ -160,6 +196,30 @@ func (m *VirtualEventRegistration) GetLastName()(*string) { } return nil } +// GetPreferredLanguage gets the preferredLanguage property value. The preferredLanguage property +// returns a *string when successful +func (m *VirtualEventRegistration) GetPreferredLanguage()(*string) { + val, err := m.GetBackingStore().Get("preferredLanguage") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetPreferredTimezone gets the preferredTimezone property value. The preferredTimezone property +// returns a *string when successful +func (m *VirtualEventRegistration) GetPreferredTimezone()(*string) { + val, err := m.GetBackingStore().Get("preferredTimezone") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // GetRegistrationDateTime gets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. // returns a *Time when successful func (m *VirtualEventRegistration) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -184,6 +244,18 @@ func (m *VirtualEventRegistration) GetRegistrationQuestionAnswers()([]VirtualEve } return nil } +// GetSessions gets the sessions property value. The sessions property +// returns a []VirtualEventSessionable when successful +func (m *VirtualEventRegistration) GetSessions()([]VirtualEventSessionable) { + val, err := m.GetBackingStore().Get("sessions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventSessionable) + } + return nil +} // GetStatus gets the status property value. Registration status of the registrant. Read-only. // returns a *VirtualEventAttendeeRegistrationStatus when successful func (m *VirtualEventRegistration) GetStatus()(*VirtualEventAttendeeRegistrationStatus) { @@ -238,6 +310,18 @@ func (m *VirtualEventRegistration) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + { + err = writer.WriteStringValue("preferredLanguage", m.GetPreferredLanguage()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("preferredTimezone", m.GetPreferredTimezone()) + if err != nil { + return err + } + } { err = writer.WriteTimeValue("registrationDateTime", m.GetRegistrationDateTime()) if err != nil { @@ -256,6 +340,18 @@ func (m *VirtualEventRegistration) Serialize(writer i878a80d2330e89d26896388a3f4 return err } } + if m.GetSessions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetSessions())) + for i, v := range m.GetSessions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("sessions", cast) + if err != nil { + return err + } + } if m.GetStatus() != nil { cast := (*m.GetStatus()).String() err = writer.WriteStringValue("status", &cast) @@ -299,6 +395,20 @@ func (m *VirtualEventRegistration) SetLastName(value *string)() { panic(err) } } +// SetPreferredLanguage sets the preferredLanguage property value. The preferredLanguage property +func (m *VirtualEventRegistration) SetPreferredLanguage(value *string)() { + err := m.GetBackingStore().Set("preferredLanguage", value) + if err != nil { + panic(err) + } +} +// SetPreferredTimezone sets the preferredTimezone property value. The preferredTimezone property +func (m *VirtualEventRegistration) SetPreferredTimezone(value *string)() { + err := m.GetBackingStore().Set("preferredTimezone", value) + if err != nil { + panic(err) + } +} // SetRegistrationDateTime sets the registrationDateTime property value. Date and time when the registrant registers for the virtual event. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. func (m *VirtualEventRegistration) SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("registrationDateTime", value) @@ -313,6 +423,13 @@ func (m *VirtualEventRegistration) SetRegistrationQuestionAnswers(value []Virtua panic(err) } } +// SetSessions sets the sessions property value. The sessions property +func (m *VirtualEventRegistration) SetSessions(value []VirtualEventSessionable)() { + err := m.GetBackingStore().Set("sessions", value) + if err != nil { + panic(err) + } +} // SetStatus sets the status property value. Registration status of the registrant. Read-only. func (m *VirtualEventRegistration) SetStatus(value *VirtualEventAttendeeRegistrationStatus)() { err := m.GetBackingStore().Set("status", value) @@ -334,16 +451,22 @@ type VirtualEventRegistrationable interface { GetEmail()(*string) GetFirstName()(*string) GetLastName()(*string) + GetPreferredLanguage()(*string) + GetPreferredTimezone()(*string) GetRegistrationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetRegistrationQuestionAnswers()([]VirtualEventRegistrationQuestionAnswerable) + GetSessions()([]VirtualEventSessionable) GetStatus()(*VirtualEventAttendeeRegistrationStatus) GetUserId()(*string) SetCancelationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEmail(value *string)() SetFirstName(value *string)() SetLastName(value *string)() + SetPreferredLanguage(value *string)() + SetPreferredTimezone(value *string)() SetRegistrationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetRegistrationQuestionAnswers(value []VirtualEventRegistrationQuestionAnswerable)() + SetSessions(value []VirtualEventSessionable)() SetStatus(value *VirtualEventAttendeeRegistrationStatus)() SetUserId(value *string)() } diff --git a/models/virtual_event_registration_configuration.go b/models/virtual_event_registration_configuration.go new file mode 100644 index 0000000000..ef3fd44066 --- /dev/null +++ b/models/virtual_event_registration_configuration.go @@ -0,0 +1,180 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventRegistrationConfiguration struct { + Entity +} +// NewVirtualEventRegistrationConfiguration instantiates a new VirtualEventRegistrationConfiguration and sets the default values. +func NewVirtualEventRegistrationConfiguration()(*VirtualEventRegistrationConfiguration) { + m := &VirtualEventRegistrationConfiguration{ + Entity: *NewEntity(), + } + return m +} +// CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventRegistrationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.virtualEventWebinarRegistrationConfiguration": + return NewVirtualEventWebinarRegistrationConfiguration(), nil + } + } + } + } + return NewVirtualEventRegistrationConfiguration(), nil +} +// GetCapacity gets the capacity property value. The capacity property +// returns a *int32 when successful +func (m *VirtualEventRegistrationConfiguration) GetCapacity()(*int32) { + val, err := m.GetBackingStore().Get("capacity") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["capacity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetCapacity(val) + } + return nil + } + res["questions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationQuestionBaseable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationQuestionBaseable) + } + } + m.SetQuestions(res) + } + return nil + } + res["registrationWebUrl"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetRegistrationWebUrl(val) + } + return nil + } + return res +} +// GetQuestions gets the questions property value. The questions property +// returns a []VirtualEventRegistrationQuestionBaseable when successful +func (m *VirtualEventRegistrationConfiguration) GetQuestions()([]VirtualEventRegistrationQuestionBaseable) { + val, err := m.GetBackingStore().Get("questions") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationQuestionBaseable) + } + return nil +} +// GetRegistrationWebUrl gets the registrationWebUrl property value. The registrationWebUrl property +// returns a *string when successful +func (m *VirtualEventRegistrationConfiguration) GetRegistrationWebUrl()(*string) { + val, err := m.GetBackingStore().Get("registrationWebUrl") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt32Value("capacity", m.GetCapacity()) + if err != nil { + return err + } + } + if m.GetQuestions() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetQuestions())) + for i, v := range m.GetQuestions() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("questions", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("registrationWebUrl", m.GetRegistrationWebUrl()) + if err != nil { + return err + } + } + return nil +} +// SetCapacity sets the capacity property value. The capacity property +func (m *VirtualEventRegistrationConfiguration) SetCapacity(value *int32)() { + err := m.GetBackingStore().Set("capacity", value) + if err != nil { + panic(err) + } +} +// SetQuestions sets the questions property value. The questions property +func (m *VirtualEventRegistrationConfiguration) SetQuestions(value []VirtualEventRegistrationQuestionBaseable)() { + err := m.GetBackingStore().Set("questions", value) + if err != nil { + panic(err) + } +} +// SetRegistrationWebUrl sets the registrationWebUrl property value. The registrationWebUrl property +func (m *VirtualEventRegistrationConfiguration) SetRegistrationWebUrl(value *string)() { + err := m.GetBackingStore().Set("registrationWebUrl", value) + if err != nil { + panic(err) + } +} +type VirtualEventRegistrationConfigurationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCapacity()(*int32) + GetQuestions()([]VirtualEventRegistrationQuestionBaseable) + GetRegistrationWebUrl()(*string) + SetCapacity(value *int32)() + SetQuestions(value []VirtualEventRegistrationQuestionBaseable)() + SetRegistrationWebUrl(value *string)() +} diff --git a/models/virtual_event_registration_custom_question.go b/models/virtual_event_registration_custom_question.go new file mode 100644 index 0000000000..77071ce5c0 --- /dev/null +++ b/models/virtual_event_registration_custom_question.go @@ -0,0 +1,122 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventRegistrationCustomQuestion struct { + VirtualEventRegistrationQuestionBase +} +// NewVirtualEventRegistrationCustomQuestion instantiates a new VirtualEventRegistrationCustomQuestion and sets the default values. +func NewVirtualEventRegistrationCustomQuestion()(*VirtualEventRegistrationCustomQuestion) { + m := &VirtualEventRegistrationCustomQuestion{ + VirtualEventRegistrationQuestionBase: *NewVirtualEventRegistrationQuestionBase(), + } + odataTypeValue := "#microsoft.graph.virtualEventRegistrationCustomQuestion" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventRegistrationCustomQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationCustomQuestion(), nil +} +// GetAnswerChoices gets the answerChoices property value. The answerChoices property +// returns a []string when successful +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerChoices()([]string) { + val, err := m.GetBackingStore().Get("answerChoices") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetAnswerInputType gets the answerInputType property value. The answerInputType property +// returns a *VirtualEventRegistrationQuestionAnswerInputType when successful +func (m *VirtualEventRegistrationCustomQuestion) GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) { + val, err := m.GetBackingStore().Get("answerInputType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*VirtualEventRegistrationQuestionAnswerInputType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventRegistrationCustomQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEventRegistrationQuestionBase.GetFieldDeserializers() + res["answerChoices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfPrimitiveValues("string") + if err != nil { + return err + } + if val != nil { + res := make([]string, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*string)) + } + } + m.SetAnswerChoices(res) + } + return nil + } + res["answerInputType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseVirtualEventRegistrationQuestionAnswerInputType) + if err != nil { + return err + } + if val != nil { + m.SetAnswerInputType(val.(*VirtualEventRegistrationQuestionAnswerInputType)) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationCustomQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEventRegistrationQuestionBase.Serialize(writer) + if err != nil { + return err + } + if m.GetAnswerChoices() != nil { + err = writer.WriteCollectionOfStringValues("answerChoices", m.GetAnswerChoices()) + if err != nil { + return err + } + } + if m.GetAnswerInputType() != nil { + cast := (*m.GetAnswerInputType()).String() + err = writer.WriteStringValue("answerInputType", &cast) + if err != nil { + return err + } + } + return nil +} +// SetAnswerChoices sets the answerChoices property value. The answerChoices property +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerChoices(value []string)() { + err := m.GetBackingStore().Set("answerChoices", value) + if err != nil { + panic(err) + } +} +// SetAnswerInputType sets the answerInputType property value. The answerInputType property +func (m *VirtualEventRegistrationCustomQuestion) SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() { + err := m.GetBackingStore().Set("answerInputType", value) + if err != nil { + panic(err) + } +} +type VirtualEventRegistrationCustomQuestionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventRegistrationQuestionBaseable + GetAnswerChoices()([]string) + GetAnswerInputType()(*VirtualEventRegistrationQuestionAnswerInputType) + SetAnswerChoices(value []string)() + SetAnswerInputType(value *VirtualEventRegistrationQuestionAnswerInputType)() +} diff --git a/models/virtual_event_registration_predefined_question.go b/models/virtual_event_registration_predefined_question.go new file mode 100644 index 0000000000..dee0069e6c --- /dev/null +++ b/models/virtual_event_registration_predefined_question.go @@ -0,0 +1,79 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventRegistrationPredefinedQuestion struct { + VirtualEventRegistrationQuestionBase +} +// NewVirtualEventRegistrationPredefinedQuestion instantiates a new VirtualEventRegistrationPredefinedQuestion and sets the default values. +func NewVirtualEventRegistrationPredefinedQuestion()(*VirtualEventRegistrationPredefinedQuestion) { + m := &VirtualEventRegistrationPredefinedQuestion{ + VirtualEventRegistrationQuestionBase: *NewVirtualEventRegistrationQuestionBase(), + } + odataTypeValue := "#microsoft.graph.virtualEventRegistrationPredefinedQuestion" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVirtualEventRegistrationPredefinedQuestionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventRegistrationPredefinedQuestionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationPredefinedQuestion(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventRegistrationPredefinedQuestion) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEventRegistrationQuestionBase.GetFieldDeserializers() + res["label"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseVirtualEventRegistrationPredefinedQuestionLabel) + if err != nil { + return err + } + if val != nil { + m.SetLabel(val.(*VirtualEventRegistrationPredefinedQuestionLabel)) + } + return nil + } + return res +} +// GetLabel gets the label property value. The label property +// returns a *VirtualEventRegistrationPredefinedQuestionLabel when successful +func (m *VirtualEventRegistrationPredefinedQuestion) GetLabel()(*VirtualEventRegistrationPredefinedQuestionLabel) { + val, err := m.GetBackingStore().Get("label") + if err != nil { + panic(err) + } + if val != nil { + return val.(*VirtualEventRegistrationPredefinedQuestionLabel) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationPredefinedQuestion) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEventRegistrationQuestionBase.Serialize(writer) + if err != nil { + return err + } + if m.GetLabel() != nil { + cast := (*m.GetLabel()).String() + err = writer.WriteStringValue("label", &cast) + if err != nil { + return err + } + } + return nil +} +// SetLabel sets the label property value. The label property +func (m *VirtualEventRegistrationPredefinedQuestion) SetLabel(value *VirtualEventRegistrationPredefinedQuestionLabel)() { + err := m.GetBackingStore().Set("label", value) + if err != nil { + panic(err) + } +} +type VirtualEventRegistrationPredefinedQuestionable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventRegistrationQuestionBaseable + GetLabel()(*VirtualEventRegistrationPredefinedQuestionLabel) + SetLabel(value *VirtualEventRegistrationPredefinedQuestionLabel)() +} diff --git a/models/virtual_event_registration_predefined_question_label.go b/models/virtual_event_registration_predefined_question_label.go new file mode 100644 index 0000000000..507d622ee3 --- /dev/null +++ b/models/virtual_event_registration_predefined_question_label.go @@ -0,0 +1,54 @@ +package models +type VirtualEventRegistrationPredefinedQuestionLabel int + +const ( + STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL VirtualEventRegistrationPredefinedQuestionLabel = iota + CITY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + STATE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + POSTALCODE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + COUNTRYORREGION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + INDUSTRY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + JOBTITLE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + ORGANIZATION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL +) + +func (i VirtualEventRegistrationPredefinedQuestionLabel) String() string { + return []string{"street", "city", "state", "postalCode", "countryOrRegion", "industry", "jobTitle", "organization", "unknownFutureValue"}[i] +} +func ParseVirtualEventRegistrationPredefinedQuestionLabel(v string) (any, error) { + result := STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + switch v { + case "street": + result = STREET_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "city": + result = CITY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "state": + result = STATE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "postalCode": + result = POSTALCODE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "countryOrRegion": + result = COUNTRYORREGION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "industry": + result = INDUSTRY_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "jobTitle": + result = JOBTITLE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "organization": + result = ORGANIZATION_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONPREDEFINEDQUESTIONLABEL + default: + return nil, nil + } + return &result, nil +} +func SerializeVirtualEventRegistrationPredefinedQuestionLabel(values []VirtualEventRegistrationPredefinedQuestionLabel) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i VirtualEventRegistrationPredefinedQuestionLabel) isMultiValue() bool { + return false +} diff --git a/models/virtual_event_registration_question_answer_input_type.go b/models/virtual_event_registration_question_answer_input_type.go new file mode 100644 index 0000000000..5f55f3241d --- /dev/null +++ b/models/virtual_event_registration_question_answer_input_type.go @@ -0,0 +1,45 @@ +package models +type VirtualEventRegistrationQuestionAnswerInputType int + +const ( + TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE VirtualEventRegistrationQuestionAnswerInputType = iota + MULTILINETEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + SINGLECHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + MULTICHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + BOOLEAN_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE +) + +func (i VirtualEventRegistrationQuestionAnswerInputType) String() string { + return []string{"text", "multilineText", "singleChoice", "multiChoice", "boolean", "unknownFutureValue"}[i] +} +func ParseVirtualEventRegistrationQuestionAnswerInputType(v string) (any, error) { + result := TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + switch v { + case "text": + result = TEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + case "multilineText": + result = MULTILINETEXT_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + case "singleChoice": + result = SINGLECHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + case "multiChoice": + result = MULTICHOICE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + case "boolean": + result = BOOLEAN_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_VIRTUALEVENTREGISTRATIONQUESTIONANSWERINPUTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeVirtualEventRegistrationQuestionAnswerInputType(values []VirtualEventRegistrationQuestionAnswerInputType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i VirtualEventRegistrationQuestionAnswerInputType) isMultiValue() bool { + return false +} diff --git a/models/virtual_event_registration_question_base.go b/models/virtual_event_registration_question_base.go new file mode 100644 index 0000000000..b948b07753 --- /dev/null +++ b/models/virtual_event_registration_question_base.go @@ -0,0 +1,133 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventRegistrationQuestionBase struct { + Entity +} +// NewVirtualEventRegistrationQuestionBase instantiates a new VirtualEventRegistrationQuestionBase and sets the default values. +func NewVirtualEventRegistrationQuestionBase()(*VirtualEventRegistrationQuestionBase) { + m := &VirtualEventRegistrationQuestionBase{ + Entity: *NewEntity(), + } + return m +} +// CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("@odata.type") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + switch *mappingValue { + case "#microsoft.graph.virtualEventRegistrationCustomQuestion": + return NewVirtualEventRegistrationCustomQuestion(), nil + case "#microsoft.graph.virtualEventRegistrationPredefinedQuestion": + return NewVirtualEventRegistrationPredefinedQuestion(), nil + } + } + } + } + return NewVirtualEventRegistrationQuestionBase(), nil +} +// GetDisplayName gets the displayName property value. The displayName property +// returns a *string when successful +func (m *VirtualEventRegistrationQuestionBase) GetDisplayName()(*string) { + val, err := m.GetBackingStore().Get("displayName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventRegistrationQuestionBase) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["displayName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDisplayName(val) + } + return nil + } + res["isRequired"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsRequired(val) + } + return nil + } + return res +} +// GetIsRequired gets the isRequired property value. The isRequired property +// returns a *bool when successful +func (m *VirtualEventRegistrationQuestionBase) GetIsRequired()(*bool) { + val, err := m.GetBackingStore().Get("isRequired") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationQuestionBase) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isRequired", m.GetIsRequired()) + if err != nil { + return err + } + } + return nil +} +// SetDisplayName sets the displayName property value. The displayName property +func (m *VirtualEventRegistrationQuestionBase) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetIsRequired sets the isRequired property value. The isRequired property +func (m *VirtualEventRegistrationQuestionBase) SetIsRequired(value *bool)() { + err := m.GetBackingStore().Set("isRequired", value) + if err != nil { + panic(err) + } +} +type VirtualEventRegistrationQuestionBaseable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetDisplayName()(*string) + GetIsRequired()(*bool) + SetDisplayName(value *string)() + SetIsRequired(value *bool)() +} diff --git a/models/virtual_event_registration_question_base_collection_response.go b/models/virtual_event_registration_question_base_collection_response.go new file mode 100644 index 0000000000..cf1e1fbb11 --- /dev/null +++ b/models/virtual_event_registration_question_base_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventRegistrationQuestionBaseCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewVirtualEventRegistrationQuestionBaseCollectionResponse instantiates a new VirtualEventRegistrationQuestionBaseCollectionResponse and sets the default values. +func NewVirtualEventRegistrationQuestionBaseCollectionResponse()(*VirtualEventRegistrationQuestionBaseCollectionResponse) { + m := &VirtualEventRegistrationQuestionBaseCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventRegistrationQuestionBaseCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventRegistrationQuestionBaseCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventRegistrationQuestionBaseable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventRegistrationQuestionBaseable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []VirtualEventRegistrationQuestionBaseable when successful +func (m *VirtualEventRegistrationQuestionBaseCollectionResponse) GetValue()([]VirtualEventRegistrationQuestionBaseable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventRegistrationQuestionBaseable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventRegistrationQuestionBaseCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *VirtualEventRegistrationQuestionBaseCollectionResponse) SetValue(value []VirtualEventRegistrationQuestionBaseable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type VirtualEventRegistrationQuestionBaseCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]VirtualEventRegistrationQuestionBaseable) + SetValue(value []VirtualEventRegistrationQuestionBaseable)() +} diff --git a/models/virtual_event_townhall.go b/models/virtual_event_townhall.go new file mode 100644 index 0000000000..4f5f00341d --- /dev/null +++ b/models/virtual_event_townhall.go @@ -0,0 +1,214 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventTownhall struct { + VirtualEvent +} +// NewVirtualEventTownhall instantiates a new VirtualEventTownhall and sets the default values. +func NewVirtualEventTownhall()(*VirtualEventTownhall) { + m := &VirtualEventTownhall{ + VirtualEvent: *NewVirtualEvent(), + } + odataTypeValue := "#microsoft.graph.virtualEventTownhall" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateVirtualEventTownhallFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventTownhallFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventTownhall(), nil +} +// GetAudience gets the audience property value. The audience property +// returns a *MeetingAudience when successful +func (m *VirtualEventTownhall) GetAudience()(*MeetingAudience) { + val, err := m.GetBackingStore().Get("audience") + if err != nil { + panic(err) + } + if val != nil { + return val.(*MeetingAudience) + } + return nil +} +// GetCoOrganizers gets the coOrganizers property value. The coOrganizers property +// returns a []CommunicationsUserIdentityable when successful +func (m *VirtualEventTownhall) GetCoOrganizers()([]CommunicationsUserIdentityable) { + val, err := m.GetBackingStore().Get("coOrganizers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]CommunicationsUserIdentityable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventTownhall) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEvent.GetFieldDeserializers() + res["audience"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseMeetingAudience) + if err != nil { + return err + } + if val != nil { + m.SetAudience(val.(*MeetingAudience)) + } + return nil + } + res["coOrganizers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateCommunicationsUserIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]CommunicationsUserIdentityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(CommunicationsUserIdentityable) + } + } + m.SetCoOrganizers(res) + } + return nil + } + res["invitedAttendees"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]Identityable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(Identityable) + } + } + m.SetInvitedAttendees(res) + } + return nil + } + res["isInviteOnly"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsInviteOnly(val) + } + return nil + } + return res +} +// GetInvitedAttendees gets the invitedAttendees property value. The invitedAttendees property +// returns a []Identityable when successful +func (m *VirtualEventTownhall) GetInvitedAttendees()([]Identityable) { + val, err := m.GetBackingStore().Get("invitedAttendees") + if err != nil { + panic(err) + } + if val != nil { + return val.([]Identityable) + } + return nil +} +// GetIsInviteOnly gets the isInviteOnly property value. The isInviteOnly property +// returns a *bool when successful +func (m *VirtualEventTownhall) GetIsInviteOnly()(*bool) { + val, err := m.GetBackingStore().Get("isInviteOnly") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventTownhall) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEvent.Serialize(writer) + if err != nil { + return err + } + if m.GetAudience() != nil { + cast := (*m.GetAudience()).String() + err = writer.WriteStringValue("audience", &cast) + if err != nil { + return err + } + } + if m.GetCoOrganizers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetCoOrganizers())) + for i, v := range m.GetCoOrganizers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("coOrganizers", cast) + if err != nil { + return err + } + } + if m.GetInvitedAttendees() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetInvitedAttendees())) + for i, v := range m.GetInvitedAttendees() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("invitedAttendees", cast) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isInviteOnly", m.GetIsInviteOnly()) + if err != nil { + return err + } + } + return nil +} +// SetAudience sets the audience property value. The audience property +func (m *VirtualEventTownhall) SetAudience(value *MeetingAudience)() { + err := m.GetBackingStore().Set("audience", value) + if err != nil { + panic(err) + } +} +// SetCoOrganizers sets the coOrganizers property value. The coOrganizers property +func (m *VirtualEventTownhall) SetCoOrganizers(value []CommunicationsUserIdentityable)() { + err := m.GetBackingStore().Set("coOrganizers", value) + if err != nil { + panic(err) + } +} +// SetInvitedAttendees sets the invitedAttendees property value. The invitedAttendees property +func (m *VirtualEventTownhall) SetInvitedAttendees(value []Identityable)() { + err := m.GetBackingStore().Set("invitedAttendees", value) + if err != nil { + panic(err) + } +} +// SetIsInviteOnly sets the isInviteOnly property value. The isInviteOnly property +func (m *VirtualEventTownhall) SetIsInviteOnly(value *bool)() { + err := m.GetBackingStore().Set("isInviteOnly", value) + if err != nil { + panic(err) + } +} +type VirtualEventTownhallable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventable + GetAudience()(*MeetingAudience) + GetCoOrganizers()([]CommunicationsUserIdentityable) + GetInvitedAttendees()([]Identityable) + GetIsInviteOnly()(*bool) + SetAudience(value *MeetingAudience)() + SetCoOrganizers(value []CommunicationsUserIdentityable)() + SetInvitedAttendees(value []Identityable)() + SetIsInviteOnly(value *bool)() +} diff --git a/models/virtual_event_townhall_collection_response.go b/models/virtual_event_townhall_collection_response.go new file mode 100644 index 0000000000..7c145caeb5 --- /dev/null +++ b/models/virtual_event_townhall_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventTownhallCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewVirtualEventTownhallCollectionResponse instantiates a new VirtualEventTownhallCollectionResponse and sets the default values. +func NewVirtualEventTownhallCollectionResponse()(*VirtualEventTownhallCollectionResponse) { + m := &VirtualEventTownhallCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateVirtualEventTownhallCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventTownhallCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventTownhallCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventTownhallCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventTownhallFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventTownhallable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventTownhallable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []VirtualEventTownhallable when successful +func (m *VirtualEventTownhallCollectionResponse) GetValue()([]VirtualEventTownhallable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventTownhallable) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventTownhallCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *VirtualEventTownhallCollectionResponse) SetValue(value []VirtualEventTownhallable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type VirtualEventTownhallCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]VirtualEventTownhallable) + SetValue(value []VirtualEventTownhallable)() +} diff --git a/models/virtual_event_webinar.go b/models/virtual_event_webinar.go index 3b64780a29..88f659517b 100644 --- a/models/virtual_event_webinar.go +++ b/models/virtual_event_webinar.go @@ -12,6 +12,8 @@ func NewVirtualEventWebinar()(*VirtualEventWebinar) { m := &VirtualEventWebinar{ VirtualEvent: *NewVirtualEvent(), } + odataTypeValue := "#microsoft.graph.virtualEventWebinar" + m.SetOdataType(&odataTypeValue) return m } // CreateVirtualEventWebinarFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value @@ -73,6 +75,16 @@ func (m *VirtualEventWebinar) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["registrationConfiguration"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetRegistrationConfiguration(val.(VirtualEventWebinarRegistrationConfigurationable)) + } + return nil + } res["registrations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVirtualEventRegistrationFromDiscriminatorValue) if err != nil { @@ -91,6 +103,18 @@ func (m *VirtualEventWebinar) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetRegistrationConfiguration gets the registrationConfiguration property value. The registrationConfiguration property +// returns a VirtualEventWebinarRegistrationConfigurationable when successful +func (m *VirtualEventWebinar) GetRegistrationConfiguration()(VirtualEventWebinarRegistrationConfigurationable) { + val, err := m.GetBackingStore().Get("registrationConfiguration") + if err != nil { + panic(err) + } + if val != nil { + return val.(VirtualEventWebinarRegistrationConfigurationable) + } + return nil +} // GetRegistrations gets the registrations property value. Registration records of the webinar. // returns a []VirtualEventRegistrationable when successful func (m *VirtualEventWebinar) GetRegistrations()([]VirtualEventRegistrationable) { @@ -128,6 +152,12 @@ func (m *VirtualEventWebinar) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err = writer.WriteObjectValue("registrationConfiguration", m.GetRegistrationConfiguration()) + if err != nil { + return err + } + } if m.GetRegistrations() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRegistrations())) for i, v := range m.GetRegistrations() { @@ -156,6 +186,13 @@ func (m *VirtualEventWebinar) SetCoOrganizers(value []CommunicationsUserIdentity panic(err) } } +// SetRegistrationConfiguration sets the registrationConfiguration property value. The registrationConfiguration property +func (m *VirtualEventWebinar) SetRegistrationConfiguration(value VirtualEventWebinarRegistrationConfigurationable)() { + err := m.GetBackingStore().Set("registrationConfiguration", value) + if err != nil { + panic(err) + } +} // SetRegistrations sets the registrations property value. Registration records of the webinar. func (m *VirtualEventWebinar) SetRegistrations(value []VirtualEventRegistrationable)() { err := m.GetBackingStore().Set("registrations", value) @@ -168,8 +205,10 @@ type VirtualEventWebinarable interface { VirtualEventable GetAudience()(*MeetingAudience) GetCoOrganizers()([]CommunicationsUserIdentityable) + GetRegistrationConfiguration()(VirtualEventWebinarRegistrationConfigurationable) GetRegistrations()([]VirtualEventRegistrationable) SetAudience(value *MeetingAudience)() SetCoOrganizers(value []CommunicationsUserIdentityable)() + SetRegistrationConfiguration(value VirtualEventWebinarRegistrationConfigurationable)() SetRegistrations(value []VirtualEventRegistrationable)() } diff --git a/models/virtual_event_webinar_registration_configuration.go b/models/virtual_event_webinar_registration_configuration.go new file mode 100644 index 0000000000..2f39cf028d --- /dev/null +++ b/models/virtual_event_webinar_registration_configuration.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type VirtualEventWebinarRegistrationConfiguration struct { + VirtualEventRegistrationConfiguration +} +// NewVirtualEventWebinarRegistrationConfiguration instantiates a new VirtualEventWebinarRegistrationConfiguration and sets the default values. +func NewVirtualEventWebinarRegistrationConfiguration()(*VirtualEventWebinarRegistrationConfiguration) { + m := &VirtualEventWebinarRegistrationConfiguration{ + VirtualEventRegistrationConfiguration: *NewVirtualEventRegistrationConfiguration(), + } + return m +} +// CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewVirtualEventWebinarRegistrationConfiguration(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *VirtualEventWebinarRegistrationConfiguration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.VirtualEventRegistrationConfiguration.GetFieldDeserializers() + res["isManualApprovalEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsManualApprovalEnabled(val) + } + return nil + } + res["isWaitlistEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsWaitlistEnabled(val) + } + return nil + } + return res +} +// GetIsManualApprovalEnabled gets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +// returns a *bool when successful +func (m *VirtualEventWebinarRegistrationConfiguration) GetIsManualApprovalEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isManualApprovalEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetIsWaitlistEnabled gets the isWaitlistEnabled property value. The isWaitlistEnabled property +// returns a *bool when successful +func (m *VirtualEventWebinarRegistrationConfiguration) GetIsWaitlistEnabled()(*bool) { + val, err := m.GetBackingStore().Get("isWaitlistEnabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *VirtualEventWebinarRegistrationConfiguration) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.VirtualEventRegistrationConfiguration.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("isManualApprovalEnabled", m.GetIsManualApprovalEnabled()) + if err != nil { + return err + } + } + { + err = writer.WriteBoolValue("isWaitlistEnabled", m.GetIsWaitlistEnabled()) + if err != nil { + return err + } + } + return nil +} +// SetIsManualApprovalEnabled sets the isManualApprovalEnabled property value. The isManualApprovalEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) SetIsManualApprovalEnabled(value *bool)() { + err := m.GetBackingStore().Set("isManualApprovalEnabled", value) + if err != nil { + panic(err) + } +} +// SetIsWaitlistEnabled sets the isWaitlistEnabled property value. The isWaitlistEnabled property +func (m *VirtualEventWebinarRegistrationConfiguration) SetIsWaitlistEnabled(value *bool)() { + err := m.GetBackingStore().Set("isWaitlistEnabled", value) + if err != nil { + panic(err) + } +} +type VirtualEventWebinarRegistrationConfigurationable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + VirtualEventRegistrationConfigurationable + GetIsManualApprovalEnabled()(*bool) + GetIsWaitlistEnabled()(*bool) + SetIsManualApprovalEnabled(value *bool)() + SetIsWaitlistEnabled(value *bool)() +} diff --git a/models/virtual_events_root.go b/models/virtual_events_root.go index bd31f090fe..f2c5022c29 100644 --- a/models/virtual_events_root.go +++ b/models/virtual_events_root.go @@ -51,6 +51,22 @@ func (m *VirtualEventsRoot) GetFieldDeserializers()(map[string]func(i878a80d2330 } return nil } + res["townhalls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateVirtualEventTownhallFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]VirtualEventTownhallable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(VirtualEventTownhallable) + } + } + m.SetTownhalls(res) + } + return nil + } res["webinars"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateVirtualEventWebinarFromDiscriminatorValue) if err != nil { @@ -69,6 +85,18 @@ func (m *VirtualEventsRoot) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } +// GetTownhalls gets the townhalls property value. The townhalls property +// returns a []VirtualEventTownhallable when successful +func (m *VirtualEventsRoot) GetTownhalls()([]VirtualEventTownhallable) { + val, err := m.GetBackingStore().Get("townhalls") + if err != nil { + panic(err) + } + if val != nil { + return val.([]VirtualEventTownhallable) + } + return nil +} // GetWebinars gets the webinars property value. The webinars property // returns a []VirtualEventWebinarable when successful func (m *VirtualEventsRoot) GetWebinars()([]VirtualEventWebinarable) { @@ -99,6 +127,18 @@ func (m *VirtualEventsRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27 return err } } + if m.GetTownhalls() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetTownhalls())) + for i, v := range m.GetTownhalls() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("townhalls", cast) + if err != nil { + return err + } + } if m.GetWebinars() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetWebinars())) for i, v := range m.GetWebinars() { @@ -120,6 +160,13 @@ func (m *VirtualEventsRoot) SetEvents(value []VirtualEventable)() { panic(err) } } +// SetTownhalls sets the townhalls property value. The townhalls property +func (m *VirtualEventsRoot) SetTownhalls(value []VirtualEventTownhallable)() { + err := m.GetBackingStore().Set("townhalls", value) + if err != nil { + panic(err) + } +} // SetWebinars sets the webinars property value. The webinars property func (m *VirtualEventsRoot) SetWebinars(value []VirtualEventWebinarable)() { err := m.GetBackingStore().Set("webinars", value) @@ -131,7 +178,9 @@ type VirtualEventsRootable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetEvents()([]VirtualEventable) + GetTownhalls()([]VirtualEventTownhallable) GetWebinars()([]VirtualEventWebinarable) SetEvents(value []VirtualEventable)() + SetTownhalls(value []VirtualEventTownhallable)() SetWebinars(value []VirtualEventWebinarable)() } diff --git a/organization/item_get_member_groups_request_builder.go b/organization/item_get_member_groups_request_builder.go index 59cd5809a7..048c739c24 100644 --- a/organization/item_get_member_groups_request_builder.go +++ b/organization/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/organization/organization_item_request_builder.go b/organization/organization_item_request_builder.go index 4bced9c774..b4bbc68fea 100644 --- a/organization/organization_item_request_builder.go +++ b/organization/organization_item_request_builder.go @@ -18,7 +18,7 @@ type OrganizationItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// OrganizationItemRequestBuilderGetQueryParameters get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. +// OrganizationItemRequestBuilderGetQueryParameters read properties and relationships of the organization object. type OrganizationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -95,12 +95,12 @@ func (m *OrganizationItemRequestBuilder) Delete(ctx context.Context, requestConf func (m *OrganizationItemRequestBuilder) Extensions()(*ItemExtensionsRequestBuilder) { return NewItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. +// Get read properties and relationships of the organization object. // returns a Organizationable 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/organization-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-organization-get?view=graph-rest-1.0 func (m *OrganizationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *OrganizationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Organizationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -172,7 +172,7 @@ func (m *OrganizationItemRequestBuilder) ToDeleteRequestInformation(ctx context. requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. +// ToGetRequestInformation read properties and relationships of the organization object. // returns a *RequestInformation when successful func (m *OrganizationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OrganizationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/permissiongrants/item_get_member_groups_request_builder.go b/permissiongrants/item_get_member_groups_request_builder.go index cc9132432f..723c8b9a0c 100644 --- a/permissiongrants/item_get_member_groups_request_builder.go +++ b/permissiongrants/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignments_item_directory_scope_request_builder.go b/rolemanagement/directory_role_assignments_item_directory_scope_request_builder.go index 75907abbf5..71214a5c53 100644 --- a/rolemanagement/directory_role_assignments_item_directory_scope_request_builder.go +++ b/rolemanagement/directory_role_assignments_item_directory_scope_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters the directory object that is the scope of the assignment. Read-only. Supports $expand. +// DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. type DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentsItemDirectoryScopeRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderInternal(urlParams, requestAdapter) } -// Get the directory object that is the scope of the assignment. Read-only. Supports $expand. +// Get the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilder) Get(ctx conte } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil } -// ToGetRequestInformation the directory object that is the scope of the assignment. Read-only. Supports $expand. +// ToGetRequestInformation the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemDirectoryScopeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignments_item_principal_request_builder.go b/rolemanagement/directory_role_assignments_item_principal_request_builder.go index 6b74faf7c3..10cabb694f 100644 --- a/rolemanagement/directory_role_assignments_item_principal_request_builder.go +++ b/rolemanagement/directory_role_assignments_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters referencing the assigned principal. Read-only. Supports $expand. +// DirectoryRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. type DirectoryRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentsItemPrincipalRequestBuilder(rawUrl string, reque urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get referencing the assigned principal. Read-only. Supports $expand. +// Get referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemPrincipalRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentsItemPrincipalRequestBuilder) Get(ctx context.Co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil } -// ToGetRequestInformation referencing the assigned principal. Read-only. Supports $expand. +// ToGetRequestInformation referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/directory_role_assignments_item_role_definition_request_builder.go b/rolemanagement/directory_role_assignments_item_role_definition_request_builder.go index 0fe847510b..cd97d03991 100644 --- a/rolemanagement/directory_role_assignments_item_role_definition_request_builder.go +++ b/rolemanagement/directory_role_assignments_item_role_definition_request_builder.go @@ -11,7 +11,7 @@ import ( type DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters the roleDefinition the assignment is for. Supports $expand. +// DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters the roleDefinition the assignment is for. Supports $expand. type DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewDirectoryRoleAssignmentsItemRoleDefinitionRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewDirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderInternal(urlParams, requestAdapter) } -// Get the roleDefinition the assignment is for. Supports $expand. +// Get the roleDefinition the assignment is for. Supports $expand. // returns a UnifiedRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedRoleDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilder) Get(ctx conte } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedRoleDefinitionable), nil } -// ToGetRequestInformation the roleDefinition the assignment is for. Supports $expand. +// ToGetRequestInformation the roleDefinition the assignment is for. Supports $expand. // returns a *RequestInformation when successful func (m *DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DirectoryRoleAssignmentsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignments_item_directory_scope_request_builder.go b/rolemanagement/entitlement_management_role_assignments_item_directory_scope_request_builder.go index 007087c299..b64299a4c8 100644 --- a/rolemanagement/entitlement_management_role_assignments_item_directory_scope_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignments_item_directory_scope_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters the directory object that is the scope of the assignment. Read-only. Supports $expand. +// EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. type EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderInternal(urlParams, requestAdapter) } -// Get the directory object that is the scope of the assignment. Read-only. Supports $expand. +// Get the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilder) G } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil } -// ToGetRequestInformation the directory object that is the scope of the assignment. Read-only. Supports $expand. +// ToGetRequestInformation the directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemDirectoryScopeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignments_item_principal_request_builder.go b/rolemanagement/entitlement_management_role_assignments_item_principal_request_builder.go index bca65e2161..308dc34cfc 100644 --- a/rolemanagement/entitlement_management_role_assignments_item_principal_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignments_item_principal_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters referencing the assigned principal. Read-only. Supports $expand. +// EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. type EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentsItemPrincipalRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderInternal(urlParams, requestAdapter) } -// Get referencing the assigned principal. Read-only. Supports $expand. +// Get referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilder) Get(ct } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil } -// ToGetRequestInformation referencing the assigned principal. Read-only. Supports $expand. +// ToGetRequestInformation referencing the assigned principal. Read-only. Supports $expand except for the Exchange provider. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemPrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/rolemanagement/entitlement_management_role_assignments_item_role_definition_request_builder.go b/rolemanagement/entitlement_management_role_assignments_item_role_definition_request_builder.go index 5ed13ff90a..8bfa085955 100644 --- a/rolemanagement/entitlement_management_role_assignments_item_role_definition_request_builder.go +++ b/rolemanagement/entitlement_management_role_assignments_item_role_definition_request_builder.go @@ -11,7 +11,7 @@ import ( type EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters the roleDefinition the assignment is for. Supports $expand. +// EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters the roleDefinition the assignment is for. Supports $expand. type EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewEntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilder(raw urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderInternal(urlParams, requestAdapter) } -// Get the roleDefinition the assignment is for. Supports $expand. +// Get the roleDefinition the assignment is for. Supports $expand. // returns a UnifiedRoleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedRoleDefinitionable, error) { @@ -60,7 +60,7 @@ func (m *EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilder) G } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedRoleDefinitionable), nil } -// ToGetRequestInformation the roleDefinition the assignment is for. Supports $expand. +// ToGetRequestInformation the roleDefinition the assignment is for. Supports $expand. // returns a *RequestInformation when successful func (m *EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementRoleAssignmentsItemRoleDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_get_member_groups_request_builder.go b/serviceprincipals/item_get_member_groups_request_builder.go index 0265502106..6d0b1f74ca 100644 --- a/serviceprincipals/item_get_member_groups_request_builder.go +++ b/serviceprincipals/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go deleted file mode 100644 index 869cbea11a..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_analytics_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder provides operations to manage the analytics property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this site. -type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/analytics{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property analytics for sites -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get analytics about the view activities that took place on this site. -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// Patch update the navigation property analytics in sites -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// ToDeleteRequestInformation delete navigation property analytics for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation analytics about the view activities that took place on this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property analytics in sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go deleted file mode 100644 index 7442eef6b1..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_columns_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters the collection of column definitions reusable across lists under this site. -type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of column definitions reusable across lists under this site. -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// Post create new navigation property to columns for sites -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the collection of column definitions reusable across lists under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go deleted file mode 100644 index eb95c0ed21..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_content_types_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters the collection of content types defined for this site. -type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of content types defined for this site. -// returns a ContentTypeCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable), nil -} -// Post create new navigation property to contentTypes for sites -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToGetRequestInformation the collection of content types defined for this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to contentTypes for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go deleted file mode 100644 index a10acbaca5..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_created_by_user_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go deleted file mode 100644 index 85e8f09950..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_drive_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder provides operations to manage the drive property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters the default drive (document library) for this site. -type ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drive{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the default drive (document library) for this site. -// returns a Driveable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable), nil -} -// ToGetRequestInformation the default drive (document library) for this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go deleted file mode 100644 index b9ef46ef73..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_drives_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder provides operations to manage the drives property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters the collection of drives (document libraries) under this site. -type ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/drives{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of drives (document libraries) under this site. -// returns a DriveCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveCollectionResponseable), nil -} -// ToGetRequestInformation the collection of drives (document libraries) under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go deleted file mode 100644 index 2ba90b7d01..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_external_columns_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder provides operations to manage the externalColumns property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters get externalColumns from sites -type ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/externalColumns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get externalColumns from sites -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// ToGetRequestInformation get externalColumns from sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go deleted file mode 100644 index a72b3455ec..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_items_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder provides operations to manage the items property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters used to address any item contained in this site. This collection can't be enumerated. -type ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get used to address any item contained in this site. This collection can't be enumerated. -// returns a BaseItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseItemCollectionResponseable), nil -} -// ToGetRequestInformation used to address any item contained in this site. This collection can't be enumerated. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go deleted file mode 100644 index 38ae34b952..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go deleted file mode 100644 index 40260e3d0c..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_lists_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder provides operations to manage the lists property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters the collection of lists under this site. -type ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/lists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of lists under this site. -// returns a ListCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListCollectionResponseable), nil -} -// Post create new navigation property to lists for sites -// returns a Listable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable), nil -} -// ToGetRequestInformation the collection of lists under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to lists for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go deleted file mode 100644 index 380213f729..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_onenote_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder provides operations to manage the onenote property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters calls the OneNote service for notebook related operations. -type ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/onenote{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property onenote for sites -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get calls the OneNote service for notebook related operations. -// returns a Onenoteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOnenoteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable), nil -} -// Patch update the navigation property onenote in sites -// returns a Onenoteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOnenoteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable), nil -} -// ToDeleteRequestInformation delete navigation property onenote for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation calls the OneNote service for notebook related operations. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property onenote in sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Onenoteable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go deleted file mode 100644 index 1811f6793b..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_operations_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder provides operations to manage the operations property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters the collection of long-running operations on the site. -type ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of long-running operations on the site. -// returns a RichLongRunningOperationCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable), nil -} -// Post create new navigation property to operations for sites -// returns a RichLongRunningOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable), nil -} -// ToGetRequestInformation the collection of long-running operations on the site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to operations for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go deleted file mode 100644 index ccf160c4a5..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_pages_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder provides operations to manage the pages property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters the collection of pages in the baseSitePages list in this site. -type ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/pages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of pages in the baseSitePages list in this site. -// returns a BaseSitePageCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseSitePageCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageCollectionResponseable), nil -} -// Post create new navigation property to pages for sites -// returns a BaseSitePageable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateBaseSitePageFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable), nil -} -// ToGetRequestInformation the collection of pages in the baseSitePages list in this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to pages for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseSitePageable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go deleted file mode 100644 index 7911396d29..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_permissions_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder provides operations to manage the permissions property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters the permissions associated with the site. Nullable. -type ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the permissions associated with the site. Nullable. -// returns a PermissionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable), nil -} -// Post create new navigation property to permissions for sites -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToGetRequestInformation the permissions associated with the site. Nullable. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to permissions for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_request_builder.go deleted file mode 100644 index 1a71b0cba8..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1RequestBuilder provides operations to call the getByPath method. -type ItemGetByPathWithPathGetByPathWithPath1RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Analytics provides operations to manage the analytics property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Analytics()(*ItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1AnalyticsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Columns()(*ItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1RequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, path1 *string)(*ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')", pathParameters), - } - if path1 != nil { - m.BaseRequestBuilder.PathParameters["path1"] = *path1 - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1RequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1RequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(urlParams, requestAdapter, nil) -} -// ContentTypes provides operations to manage the contentTypes property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ContentTypes()(*ItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ContentTypesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) CreatedByUser()(*ItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1CreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Drive provides operations to manage the drive property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Drive()(*ItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1DriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Drives provides operations to manage the drives property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Drives()(*ItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1DrivesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ExternalColumns provides operations to manage the externalColumns property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ExternalColumns()(*ItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ExternalColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get invoke function getByPath -// returns a Siteable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSiteFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Siteable), nil -} -// Items provides operations to manage the items property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Items()(*ItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) LastModifiedByUser()(*ItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1LastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lists provides operations to manage the lists property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Lists()(*ItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1ListsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Onenote provides operations to manage the onenote property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Onenote()(*ItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1OnenoteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Operations provides operations to manage the operations property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Operations()(*ItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1OperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pages provides operations to manage the pages property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Pages()(*ItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1PagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Permissions provides operations to manage the permissions property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Permissions()(*ItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1PermissionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sites provides operations to manage the sites property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) Sites()(*ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TermStore provides operations to manage the termStore property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) TermStore()(*ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TermStores provides operations to manage the termStores property of the microsoft.graph.site entity. -// returns a *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) TermStores()(*ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation invoke function getByPath -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1RequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go deleted file mode 100644 index 26fd4f70eb..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_sites_request_builder.go +++ /dev/null @@ -1,93 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder provides operations to manage the sites property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters the collection of the sub-sites under this site. -type ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetQueryParameters -} -// NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of the sub-sites under this site. -// returns a SiteCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSiteCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable), nil -} -// ToGetRequestInformation the collection of the sub-sites under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1SitesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go deleted file mode 100644 index 65567cd6a2..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_term_store_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3 "github.com/microsoftgraph/msgraph-sdk-go/models/termstore" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder provides operations to manage the termStore property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters the default termStore under this site. -type ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStore{?%24expand,%24select}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property termStore for sites -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the default termStore under this site. -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// Patch update the navigation property termStore in sites -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) Patch(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// ToDeleteRequestInformation delete navigation property termStore for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the default termStore under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property termStore in sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1TermStoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go b/sites/item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go deleted file mode 100644 index ee711132dd..0000000000 --- a/sites/item_get_by_path_with_path_get_by_path_with_path1_term_stores_request_builder.go +++ /dev/null @@ -1,135 +0,0 @@ -package sites - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3 "github.com/microsoftgraph/msgraph-sdk-go/models/termstore" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder provides operations to manage the termStores property of the microsoft.graph.site entity. -type ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters the collection of termStores under this site. -type ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetQueryParameters -} -// ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal instantiates a new ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - m := &ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/sites/{site%2Did}/getByPath(path='{path}')/getByPath(path='{path1}')/termStores{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder instantiates a new ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder and sets the default values. -func NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of termStores under this site. -// returns a StoreCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.StoreCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.StoreCollectionResponseable), nil -} -// Post create new navigation property to termStores for sites -// returns a Storeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) Post(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration)(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.CreateStoreFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable), nil -} -// ToGetRequestInformation the collection of termStores under this site. -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to termStores for sites -// returns a *RequestInformation when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) ToPostRequestInformation(ctx context.Context, body ia3c27b33aa3d3ed80f9de797c48fbb8ed73f13887e301daf51f08450e9a634a3.Storeable, requestConfiguration *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder when successful -func (m *ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1TermStoresRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/sites/item_get_by_path_with_path_request_builder.go b/sites/item_get_by_path_with_path_request_builder.go index 84f3765867..83d71db3ac 100644 --- a/sites/item_get_by_path_with_path_request_builder.go +++ b/sites/item_get_by_path_with_path_request_builder.go @@ -104,11 +104,6 @@ func (m *ItemGetByPathWithPathRequestBuilder) GetActivitiesByIntervalWithStartDa func (m *ItemGetByPathWithPathRequestBuilder) GetApplicableContentTypesForListWithListId(listId *string)(*ItemGetByPathWithPathGetApplicableContentTypesForListWithListIdRequestBuilder) { return NewItemGetByPathWithPathGetApplicableContentTypesForListWithListIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, listId) } -// GetByPathWithPath1 provides operations to call the getByPath method. -// returns a *ItemGetByPathWithPathGetByPathWithPath1RequestBuilder when successful -func (m *ItemGetByPathWithPathRequestBuilder) GetByPathWithPath1(path1 *string)(*ItemGetByPathWithPathGetByPathWithPath1RequestBuilder) { - return NewItemGetByPathWithPathGetByPathWithPath1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, path1) -} // Items provides operations to manage the items property of the microsoft.graph.site entity. // returns a *ItemGetByPathWithPathItemsRequestBuilder when successful func (m *ItemGetByPathWithPathRequestBuilder) Items()(*ItemGetByPathWithPathItemsRequestBuilder) { diff --git a/sites/item_lists_list_item_request_builder.go b/sites/item_lists_list_item_request_builder.go index ea2f72cc41..788f10c0fa 100644 --- a/sites/item_lists_list_item_request_builder.go +++ b/sites/item_lists_list_item_request_builder.go @@ -18,7 +18,7 @@ type ItemListsListItemRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemListsListItemRequestBuilderGetQueryParameters returns the metadata for a list. +// ItemListsListItemRequestBuilderGetQueryParameters get a list of rich long-running operations associated with a list. type ItemListsListItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,12 +90,12 @@ func (m *ItemListsListItemRequestBuilder) Delete(ctx context.Context, requestCon func (m *ItemListsListItemRequestBuilder) Drive()(*ItemListsItemDriveRequestBuilder) { return NewItemListsItemDriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get returns the metadata for a list. +// Get get a list of rich long-running operations associated with a list. // returns a Listable 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/list-get?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-1.0 func (m *ItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -164,7 +164,7 @@ func (m *ItemListsListItemRequestBuilder) ToDeleteRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation returns the metadata for a list. +// ToGetRequestInformation get a list of rich long-running operations associated with a list. // returns a *RequestInformation when successful func (m *ItemListsListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/sites/sites_request_builder.go b/sites/sites_request_builder.go index fc6bc5ae51..dbda4c953a 100644 --- a/sites/sites_request_builder.go +++ b/sites/sites_request_builder.go @@ -11,7 +11,7 @@ import ( type SitesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// SitesRequestBuilderGetQueryParameters search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// SitesRequestBuilderGetQueryParameters list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. type SitesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,12 +79,12 @@ func (m *SitesRequestBuilder) Count()(*CountRequestBuilder) { func (m *SitesRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// Get list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. // returns a SiteCollectionResponseable 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/site-search?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/site-list?view=graph-rest-1.0 func (m *SitesRequestBuilder) Get(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SiteCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +112,7 @@ func (m *SitesRequestBuilder) GetAllSites()(*GetAllSitesRequestBuilder) { func (m *SitesRequestBuilder) Remove()(*RemoveRequestBuilder) { return NewRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation search across a SharePoint tenant for sites that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. +// ToGetRequestInformation list all available sites in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a $search query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites. For more guidance about building applications that use site discovery for scanning purposes, see Best practices for discovering files and detecting changes at scale. // returns a *RequestInformation when successful func (m *SitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go b/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go new file mode 100644 index 0000000000..111781b275 --- /dev/null +++ b/solutions/60dd02184904f17bf66b96536cc532a31374f3479dce2b9e83aa5fc78ecb511e.go @@ -0,0 +1,157 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters get questions from solutions +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property questions for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get questions from solutions +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable), nil +} +// Patch update the navigation property questions in solutions +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable), nil +} +// ToDeleteRequestInformation delete navigation property questions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get questions from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property questions in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/734421de1d1b0bafca773509f565cbedeb27d957551775f59f138b48e561944a.go b/solutions/734421de1d1b0bafca773509f565cbedeb27d957551775f59f138b48e561944a.go new file mode 100644 index 0000000000..fd37c67938 --- /dev/null +++ b/solutions/734421de1d1b0bafca773509f565cbedeb27d957551775f59f138b48e561944a.go @@ -0,0 +1,162 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetQueryParameters the attendance reports of an online meeting. Read-only. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AttendanceRecords provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) AttendanceRecords()(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property attendanceReports for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the attendance reports of an online meeting. Read-only. +// returns a MeetingAttendanceReportable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMeetingAttendanceReportFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable), nil +} +// Patch update the navigation property attendanceReports in solutions +// returns a MeetingAttendanceReportable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMeetingAttendanceReportFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable), nil +} +// ToDeleteRequestInformation delete navigation property attendanceReports for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation the attendance reports of an online meeting. Read-only. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property attendanceReports in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/d15b59a0fc3ea01216a9aafc9f3dc978062eadd9c04980e4ae59cba1bb336115.go b/solutions/d15b59a0fc3ea01216a9aafc9f3dc978062eadd9c04980e4ae59cba1bb336115.go new file mode 100644 index 0000000000..0884836179 --- /dev/null +++ b/solutions/d15b59a0fc3ea01216a9aafc9f3dc978062eadd9c04980e4ae59cba1bb336115.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetQueryParameters list of attendance records of an attendance report. Read-only. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByAttendanceRecordId provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ByAttendanceRecordId(attendanceRecordId string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if attendanceRecordId != "" { + urlTplParams["attendanceRecord%2Did"] = attendanceRecordId + } + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) Count()(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get list of attendance records of an attendance report. Read-only. +// returns a AttendanceRecordCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateAttendanceRecordCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordCollectionResponseable), nil +} +// Post create new navigation property to attendanceRecords for solutions +// returns a AttendanceRecordable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateAttendanceRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable), nil +} +// ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to attendanceRecords for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/d236e921df93a1a7e46b163ffb030ef362c2c209d8029a002ac184d4f5a6d59b.go b/solutions/d236e921df93a1a7e46b163ffb030ef362c2c209d8029a002ac184d4f5a6d59b.go new file mode 100644 index 0000000000..fdc04a768f --- /dev/null +++ b/solutions/d236e921df93a1a7e46b163ffb030ef362c2c209d8029a002ac184d4f5a6d59b.go @@ -0,0 +1,157 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetQueryParameters list of attendance records of an attendance report. Read-only. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/{attendanceRecord%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property attendanceRecords for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get list of attendance records of an attendance report. Read-only. +// returns a AttendanceRecordable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateAttendanceRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable), nil +} +// Patch update the navigation property attendanceRecords in solutions +// returns a AttendanceRecordable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateAttendanceRecordFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable), nil +} +// ToDeleteRequestInformation delete navigation property attendanceRecords for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property attendanceRecords in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.AttendanceRecordable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/ed74ececcd7e3883d3d2ddadf654904bcbc9501669a442066a0ec0cf8b5bed3a.go b/solutions/ed74ececcd7e3883d3d2ddadf654904bcbc9501669a442066a0ec0cf8b5bed3a.go new file mode 100644 index 0000000000..8f253f18ad --- /dev/null +++ b/solutions/ed74ececcd7e3883d3d2ddadf654904bcbc9501669a442066a0ec0cf8b5bed3a.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/{meetingAttendanceReport%2Did}/attendanceRecords/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_cancel_request_builder.go b/solutions/virtual_events_events_item_cancel_request_builder.go new file mode 100644 index 0000000000..75956ebd73 --- /dev/null +++ b/solutions/virtual_events_events_item_cancel_request_builder.go @@ -0,0 +1,64 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsEventsItemCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsEventsItemCancelRequestBuilderInternal instantiates a new VirtualEventsEventsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemCancelRequestBuilder) { + m := &VirtualEventsEventsItemCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/cancel", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemCancelRequestBuilder instantiates a new VirtualEventsEventsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsEventsItemCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsEventsItemCancelRequestBuilder when successful +func (m *VirtualEventsEventsItemCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemCancelRequestBuilder) { + return NewVirtualEventsEventsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_presenters_count_request_builder.go b/solutions/virtual_events_events_item_presenters_count_request_builder.go new file mode 100644 index 0000000000..17f75384a9 --- /dev/null +++ b/solutions/virtual_events_events_item_presenters_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemPresentersCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsEventsItemPresentersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemPresentersCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsEventsItemPresentersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsEventsItemPresentersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemPresentersCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal instantiates a new VirtualEventsEventsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersCountRequestBuilder) { + m := &VirtualEventsEventsItemPresentersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemPresentersCountRequestBuilder instantiates a new VirtualEventsEventsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsEventsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsEventsItemPresentersCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemPresentersCountRequestBuilder) { + return NewVirtualEventsEventsItemPresentersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_presenters_request_builder.go b/solutions/virtual_events_events_item_presenters_request_builder.go new file mode 100644 index 0000000000..bc2a72dac4 --- /dev/null +++ b/solutions/virtual_events_events_item_presenters_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemPresentersRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsEventsItemPresentersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemPresentersRequestBuilderGetQueryParameters +} +// VirtualEventsEventsItemPresentersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventPresenterId provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsEventsItemPresentersRequestBuilder) ByVirtualEventPresenterId(virtualEventPresenterId string)(*VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventPresenterId != "" { + urlTplParams["virtualEventPresenter%2Did"] = virtualEventPresenterId + } + return NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsEventsItemPresentersRequestBuilderInternal instantiates a new VirtualEventsEventsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersRequestBuilder) { + m := &VirtualEventsEventsItemPresentersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemPresentersRequestBuilder instantiates a new VirtualEventsEventsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemPresentersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsEventsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsEventsItemPresentersRequestBuilder) Count()(*VirtualEventsEventsItemPresentersCountRequestBuilder) { + return NewVirtualEventsEventsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get presenters from solutions +// returns a VirtualEventPresenterCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable), nil +} +// Post create new navigation property to presenters for solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsEventsItemPresentersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsEventsItemPresentersRequestBuilder when successful +func (m *VirtualEventsEventsItemPresentersRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemPresentersRequestBuilder) { + return NewVirtualEventsEventsItemPresentersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go new file mode 100644 index 0000000000..675a5d070d --- /dev/null +++ b/solutions/virtual_events_events_item_presenters_virtual_event_presenter_item_request_builder.go @@ -0,0 +1,157 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters +} +// VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderInternal instantiates a new VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) { + m := &VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder instantiates a new VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property presenters for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get presenters from solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// Patch update the navigation property presenters in solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToDeleteRequestInformation delete navigation property presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property presenters in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder) { + return NewVirtualEventsEventsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_item_publish_request_builder.go b/solutions/virtual_events_events_item_publish_request_builder.go new file mode 100644 index 0000000000..527f8186e3 --- /dev/null +++ b/solutions/virtual_events_events_item_publish_request_builder.go @@ -0,0 +1,64 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsEventsItemPublishRequestBuilder provides operations to call the publish method. +type VirtualEventsEventsItemPublishRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsEventsItemPublishRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsEventsItemPublishRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsEventsItemPublishRequestBuilderInternal instantiates a new VirtualEventsEventsItemPublishRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPublishRequestBuilder) { + m := &VirtualEventsEventsItemPublishRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/publish", pathParameters), + } + return m +} +// NewVirtualEventsEventsItemPublishRequestBuilder instantiates a new VirtualEventsEventsItemPublishRequestBuilder and sets the default values. +func NewVirtualEventsEventsItemPublishRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsItemPublishRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsEventsItemPublishRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action publish +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsEventsItemPublishRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPublishRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action publish +// returns a *RequestInformation when successful +func (m *VirtualEventsEventsItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsEventsItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsEventsItemPublishRequestBuilder when successful +func (m *VirtualEventsEventsItemPublishRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsEventsItemPublishRequestBuilder) { + return NewVirtualEventsEventsItemPublishRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_events_virtual_event_item_request_builder.go b/solutions/virtual_events_events_virtual_event_item_request_builder.go index 8ba2bf84fc..2d8abe740b 100644 --- a/solutions/virtual_events_events_virtual_event_item_request_builder.go +++ b/solutions/virtual_events_events_virtual_event_item_request_builder.go @@ -41,6 +41,11 @@ type VirtualEventsEventsVirtualEventItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsEventsItemCancelRequestBuilder when successful +func (m *VirtualEventsEventsVirtualEventItemRequestBuilder) Cancel()(*VirtualEventsEventsItemCancelRequestBuilder) { + return NewVirtualEventsEventsItemCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewVirtualEventsEventsVirtualEventItemRequestBuilderInternal instantiates a new VirtualEventsEventsVirtualEventItemRequestBuilder and sets the default values. func NewVirtualEventsEventsVirtualEventItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsEventsVirtualEventItemRequestBuilder) { m := &VirtualEventsEventsVirtualEventItemRequestBuilder{ @@ -110,6 +115,16 @@ func (m *VirtualEventsEventsVirtualEventItemRequestBuilder) Patch(ctx context.Co } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventable), nil } +// Presenters provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsEventsItemPresentersRequestBuilder when successful +func (m *VirtualEventsEventsVirtualEventItemRequestBuilder) Presenters()(*VirtualEventsEventsItemPresentersRequestBuilder) { + return NewVirtualEventsEventsItemPresentersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Publish provides operations to call the publish method. +// returns a *VirtualEventsEventsItemPublishRequestBuilder when successful +func (m *VirtualEventsEventsVirtualEventItemRequestBuilder) Publish()(*VirtualEventsEventsItemPublishRequestBuilder) { + return NewVirtualEventsEventsItemPublishRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. // returns a *VirtualEventsEventsItemSessionsRequestBuilder when successful func (m *VirtualEventsEventsVirtualEventItemRequestBuilder) Sessions()(*VirtualEventsEventsItemSessionsRequestBuilder) { diff --git a/solutions/virtual_events_request_builder.go b/solutions/virtual_events_request_builder.go index 35368e12ae..f5df9615e1 100644 --- a/solutions/virtual_events_request_builder.go +++ b/solutions/virtual_events_request_builder.go @@ -155,6 +155,11 @@ func (m *VirtualEventsRequestBuilder) ToPatchRequestInformation(ctx context.Cont } return requestInfo, nil } +// Townhalls provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. +// returns a *VirtualEventsTownhallsRequestBuilder when successful +func (m *VirtualEventsRequestBuilder) Townhalls()(*VirtualEventsTownhallsRequestBuilder) { + return NewVirtualEventsTownhallsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Webinars provides operations to manage the webinars property of the microsoft.graph.virtualEventsRoot entity. // returns a *VirtualEventsWebinarsRequestBuilder when successful func (m *VirtualEventsRequestBuilder) Webinars()(*VirtualEventsWebinarsRequestBuilder) { diff --git a/solutions/virtual_events_townhalls_count_request_builder.go b/solutions/virtual_events_townhalls_count_request_builder.go new file mode 100644 index 0000000000..c4e7b9d098 --- /dev/null +++ b/solutions/virtual_events_townhalls_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsTownhallsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsCountRequestBuilder) { + m := &VirtualEventsTownhallsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsCountRequestBuilder instantiates a new VirtualEventsTownhallsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsCountRequestBuilder) { + return NewVirtualEventsTownhallsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_presenters_count_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_count_request_builder.go new file mode 100644 index 0000000000..f1b93553c3 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_presenters_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemPresentersCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemPresentersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemPresentersCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemPresentersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsTownhallsItemPresentersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemPresentersCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { + m := &VirtualEventsTownhallsItemPresentersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemPresentersCountRequestBuilder instantiates a new VirtualEventsTownhallsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemPresentersCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { + return NewVirtualEventsTownhallsItemPresentersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_presenters_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_request_builder.go new file mode 100644 index 0000000000..43fdbecf1f --- /dev/null +++ b/solutions/virtual_events_townhalls_item_presenters_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemPresentersRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsTownhallsItemPresentersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemPresentersRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemPresentersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventPresenterId provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) ByVirtualEventPresenterId(virtualEventPresenterId string)(*VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventPresenterId != "" { + urlTplParams["virtualEventPresenter%2Did"] = virtualEventPresenterId + } + return NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemPresentersRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersRequestBuilder) { + m := &VirtualEventsTownhallsItemPresentersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemPresentersRequestBuilder instantiates a new VirtualEventsTownhallsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemPresentersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Count()(*VirtualEventsTownhallsItemPresentersCountRequestBuilder) { + return NewVirtualEventsTownhallsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get presenters from solutions +// returns a VirtualEventPresenterCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable), nil +} +// Post create new navigation property to presenters for solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsTownhallsItemPresentersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemPresentersRequestBuilder when successful +func (m *VirtualEventsTownhallsItemPresentersRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemPresentersRequestBuilder) { + return NewVirtualEventsTownhallsItemPresentersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go new file mode 100644 index 0000000000..e06eb7c38f --- /dev/null +++ b/solutions/virtual_events_townhalls_item_presenters_virtual_event_presenter_item_request_builder.go @@ -0,0 +1,157 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) { + m := &VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder instantiates a new VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property presenters for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get presenters from solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// Patch update the navigation property presenters in solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToDeleteRequestInformation delete navigation property presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property presenters in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder) { + return NewVirtualEventsTownhallsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_count_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_count_request_builder.go new file mode 100644 index 0000000000..254fd86454 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemSessionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemSessionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsTownhallsItemSessionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_count_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_count_request_builder.go new file mode 100644 index 0000000000..7c44dbb63c --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_request_builder.go new file mode 100644 index 0000000000..83609980ff --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_item_attendance_reports_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetQueryParameters the attendance reports of an online meeting. Read-only. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByMeetingAttendanceReportId provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) ByMeetingAttendanceReportId(meetingAttendanceReportId string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if meetingAttendanceReportId != "" { + urlTplParams["meetingAttendanceReport%2Did"] = meetingAttendanceReportId + } + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/attendanceReports{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) Count()(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get the attendance reports of an online meeting. Read-only. +// returns a MeetingAttendanceReportCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMeetingAttendanceReportCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportCollectionResponseable), nil +} +// Post create new navigation property to attendanceReports for solutions +// returns a MeetingAttendanceReportable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMeetingAttendanceReportFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable), nil +} +// ToGetRequestInformation the attendance reports of an online meeting. Read-only. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to attendanceReports for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MeetingAttendanceReportable, requestConfiguration *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_request_builder.go new file mode 100644 index 0000000000..fd4e96ef56 --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. +type VirtualEventsTownhallsItemSessionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters sessions for the virtual event. +type VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventSessionId provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) ByVirtualEventSessionId(virtualEventSessionId string)(*VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventSessionId != "" { + urlTplParams["virtualEventSession%2Did"] = virtualEventSessionId + } + return NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemSessionsRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Count()(*VirtualEventsTownhallsItemSessionsCountRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get sessions for the virtual event. +// returns a VirtualEventSessionCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionCollectionResponseable), nil +} +// Post create new navigation property to sessions for solutions +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable), nil +} +// ToGetRequestInformation sessions for the virtual event. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to sessions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, requestConfiguration *VirtualEventsTownhallsItemSessionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go new file mode 100644 index 0000000000..625d825b2d --- /dev/null +++ b/solutions/virtual_events_townhalls_item_sessions_virtual_event_session_item_request_builder.go @@ -0,0 +1,162 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. +type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters sessions for the virtual event. +type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// AttendanceReports provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. +// returns a *VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) AttendanceReports()(*VirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsItemAttendanceReportsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) { + m := &VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder instantiates a new VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sessions for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get sessions for the virtual event. +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable), nil +} +// Patch update the navigation property sessions in solutions +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable), nil +} +// ToDeleteRequestInformation delete navigation property sessions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation sessions for the virtual event. +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property sessions in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, requestConfiguration *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_request_builder.go b/solutions/virtual_events_townhalls_request_builder.go new file mode 100644 index 0000000000..45c6d47f37 --- /dev/null +++ b/solutions/virtual_events_townhalls_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsRequestBuilder provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. +type VirtualEventsTownhallsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsRequestBuilderGetQueryParameters get townhalls from solutions +type VirtualEventsTownhallsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsTownhallsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventTownhallId provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. +// returns a *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder when successful +func (m *VirtualEventsTownhallsRequestBuilder) ByVirtualEventTownhallId(virtualEventTownhallId string)(*VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventTownhallId != "" { + urlTplParams["virtualEventTownhall%2Did"] = virtualEventTownhallId + } + return NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsTownhallsRequestBuilderInternal instantiates a new VirtualEventsTownhallsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsRequestBuilder) { + m := &VirtualEventsTownhallsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsRequestBuilder instantiates a new VirtualEventsTownhallsRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsTownhallsCountRequestBuilder when successful +func (m *VirtualEventsTownhallsRequestBuilder) Count()(*VirtualEventsTownhallsCountRequestBuilder) { + return NewVirtualEventsTownhallsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get townhalls from solutions +// returns a VirtualEventTownhallCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventTownhallCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallCollectionResponseable), nil +} +// Post create new navigation property to townhalls for solutions +// returns a VirtualEventTownhallable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, requestConfiguration *VirtualEventsTownhallsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventTownhallFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable), nil +} +// ToGetRequestInformation get townhalls from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to townhalls for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, requestConfiguration *VirtualEventsTownhallsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsRequestBuilder when successful +func (m *VirtualEventsTownhallsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsRequestBuilder) { + return NewVirtualEventsTownhallsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go b/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go new file mode 100644 index 0000000000..210d7263fb --- /dev/null +++ b/solutions/virtual_events_townhalls_virtual_event_townhall_item_request_builder.go @@ -0,0 +1,167 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder provides operations to manage the townhalls property of the microsoft.graph.virtualEventsRoot entity. +type VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetQueryParameters get townhalls from solutions +type VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetQueryParameters +} +// VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderInternal instantiates a new VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) { + m := &VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder instantiates a new VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder and sets the default values. +func NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property townhalls for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get townhalls from solutions +// returns a VirtualEventTownhallable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventTownhallFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable), nil +} +// Patch update the navigation property townhalls in solutions +// returns a VirtualEventTownhallable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventTownhallFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable), nil +} +// Presenters provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsTownhallsItemPresentersRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Presenters()(*VirtualEventsTownhallsItemPresentersRequestBuilder) { + return NewVirtualEventsTownhallsItemPresentersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsTownhallsItemSessionsRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) Sessions()(*VirtualEventsTownhallsItemSessionsRequestBuilder) { + return NewVirtualEventsTownhallsItemSessionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property townhalls for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get townhalls from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property townhalls in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventTownhallable, requestConfiguration *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder when successful +func (m *VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder) { + return NewVirtualEventsTownhallsVirtualEventTownhallItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_presenters_count_request_builder.go b/solutions/virtual_events_webinars_item_presenters_count_request_builder.go new file mode 100644 index 0000000000..4163f329eb --- /dev/null +++ b/solutions/virtual_events_webinars_item_presenters_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemPresentersCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemPresentersCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemPresentersCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemPresentersCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemPresentersCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemPresentersCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { + m := &VirtualEventsWebinarsItemPresentersCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemPresentersCountRequestBuilder instantiates a new VirtualEventsWebinarsItemPresentersCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemPresentersCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { + return NewVirtualEventsWebinarsItemPresentersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_presenters_request_builder.go b/solutions/virtual_events_webinars_item_presenters_request_builder.go new file mode 100644 index 0000000000..9a94b266d4 --- /dev/null +++ b/solutions/virtual_events_webinars_item_presenters_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemPresentersRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsWebinarsItemPresentersRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemPresentersRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemPresentersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventPresenterId provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) ByVirtualEventPresenterId(virtualEventPresenterId string)(*VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventPresenterId != "" { + urlTplParams["virtualEventPresenter%2Did"] = virtualEventPresenterId + } + return NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemPresentersRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersRequestBuilder) { + m := &VirtualEventsWebinarsItemPresentersRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemPresentersRequestBuilder instantiates a new VirtualEventsWebinarsItemPresentersRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemPresentersRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsWebinarsItemPresentersCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Count()(*VirtualEventsWebinarsItemPresentersCountRequestBuilder) { + return NewVirtualEventsWebinarsItemPresentersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get presenters from solutions +// returns a VirtualEventPresenterCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterCollectionResponseable), nil +} +// Post create new navigation property to presenters for solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsWebinarsItemPresentersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemPresentersRequestBuilder when successful +func (m *VirtualEventsWebinarsItemPresentersRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemPresentersRequestBuilder) { + return NewVirtualEventsWebinarsItemPresentersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go new file mode 100644 index 0000000000..efac011028 --- /dev/null +++ b/solutions/virtual_events_webinars_item_presenters_virtual_event_presenter_item_request_builder.go @@ -0,0 +1,157 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters get presenters from solutions +type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) { + m := &VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder instantiates a new VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property presenters for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get presenters from solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// Patch update the navigation property presenters in solutions +// returns a VirtualEventPresenterable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventPresenterFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable), nil +} +// ToDeleteRequestInformation delete navigation property presenters for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get presenters from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property presenters in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventPresenterable, requestConfiguration *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder) { + return NewVirtualEventsWebinarsItemPresentersVirtualEventPresenterItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registration_configuration_questions_count_request_builder.go b/solutions/virtual_events_webinars_item_registration_configuration_questions_count_request_builder.go new file mode 100644 index 0000000000..db0e250a2b --- /dev/null +++ b/solutions/virtual_events_webinars_item_registration_configuration_questions_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go b/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go new file mode 100644 index 0000000000..c55ad6757e --- /dev/null +++ b/solutions/virtual_events_webinars_item_registration_configuration_questions_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters get questions from solutions +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByVirtualEventRegistrationQuestionBaseId provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) ByVirtualEventRegistrationQuestionBaseId(virtualEventRegistrationQuestionBaseId string)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventRegistrationQuestionBaseId != "" { + urlTplParams["virtualEventRegistrationQuestionBase%2Did"] = virtualEventRegistrationQuestionBaseId + } + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsVirtualEventRegistrationQuestionBaseItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get questions from solutions +// returns a VirtualEventRegistrationQuestionBaseCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationQuestionBaseCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseCollectionResponseable), nil +} +// Post create new navigation property to questions for solutions +// returns a VirtualEventRegistrationQuestionBaseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationQuestionBaseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable), nil +} +// ToGetRequestInformation get questions from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to questions for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationQuestionBaseable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go b/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go new file mode 100644 index 0000000000..f8ebc37448 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registration_configuration_request_builder.go @@ -0,0 +1,162 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters get registrationConfiguration from solutions +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrationConfiguration{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property registrationConfiguration for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get registrationConfiguration from solutions +// returns a VirtualEventWebinarRegistrationConfigurationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable), nil +} +// Patch update the navigation property registrationConfiguration in solutions +// returns a VirtualEventWebinarRegistrationConfigurationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventWebinarRegistrationConfigurationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable), nil +} +// Questions provides operations to manage the questions property of the microsoft.graph.virtualEventRegistrationConfiguration entity. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) Questions()(*VirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property registrationConfiguration for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get registrationConfiguration from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property registrationConfiguration in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarRegistrationConfigurationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go new file mode 100644 index 0000000000..662dfec261 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_cancel_request_builder.go @@ -0,0 +1,64 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go new file mode 100644 index 0000000000..112c8e5a84 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder provides operations to count the resources in the collection. +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters get the number of the resource +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go new file mode 100644 index 0000000000..9f1e035da0 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_request_builder.go @@ -0,0 +1,110 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters get sessions from solutions +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetQueryParameters +} +// ByVirtualEventSessionId provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) ByVirtualEventSessionId(virtualEventSessionId string)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if virtualEventSessionId != "" { + urlTplParams["virtualEventSession%2Did"] = virtualEventSessionId + } + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Count()(*VirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get sessions from solutions +// returns a VirtualEventSessionCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionCollectionResponseable), nil +} +// ToGetRequestInformation get sessions from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go b/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go new file mode 100644 index 0000000000..88c4db010b --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_item_sessions_virtual_event_session_item_request_builder.go @@ -0,0 +1,81 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters get sessions from solutions +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetQueryParameters +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get sessions from solutions +// returns a VirtualEventSessionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventSessionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventSessionable), nil +} +// ToGetRequestInformation get sessions from solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsVirtualEventSessionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go b/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go index 32a3ced838..08ab9e87c4 100644 --- a/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go +++ b/solutions/virtual_events_webinars_item_registrations_virtual_event_registration_item_request_builder.go @@ -41,6 +41,11 @@ type VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Cancel()(*VirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder and sets the default values. func NewVirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) { m := &VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder{ @@ -113,6 +118,11 @@ func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemReque } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable), nil } +// Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEventRegistration entity. +// returns a *VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) Sessions()(*VirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsItemSessionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property registrations for solutions // returns a *RequestInformation when successful func (m *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsVirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go new file mode 100644 index 0000000000..bd16789846 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_email_cancel_request_builder.go @@ -0,0 +1,64 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}')/cancel", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go new file mode 100644 index 0000000000..245539b6e6 --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_email_request_builder.go @@ -0,0 +1,168 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters get the properties and relationships of a virtualEventRegistration object. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Cancel()(*VirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, email *string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters), + } + if email != nil { + m.BaseRequestBuilder.PathParameters["email"] = *email + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get the properties and relationships of a virtualEventRegistration object. +// returns a VirtualEventRegistrationable 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/virtualeventregistration-get?view=graph-rest-1.0 +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get the properties and relationships of a virtualEventRegistration object. +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go new file mode 100644 index 0000000000..75b10c51ea --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_user_id_cancel_request_builder.go @@ -0,0 +1,64 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder provides operations to call the cancel method. +type VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}')/cancel", pathParameters), + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action cancel +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action cancel +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go b/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go new file mode 100644 index 0000000000..8a177e828c --- /dev/null +++ b/solutions/virtual_events_webinars_item_registrations_with_user_id_request_builder.go @@ -0,0 +1,168 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters get the properties and relationships of a virtualEventRegistration object. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetQueryParameters +} +// VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Cancel()(*VirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, userId *string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + m := &VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters), + } + if userId != nil { + m.BaseRequestBuilder.PathParameters["userId"] = *userId + } + return m +} +// NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder instantiates a new VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder and sets the default values. +func NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete navigation property registrations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get the properties and relationships of a virtualEventRegistration object. +// returns a VirtualEventRegistrationable 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/virtualeventregistration-get?view=graph-rest-1.0 +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable), nil +} +// Patch update the navigation property registrations in solutions +// returns a VirtualEventRegistrationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateVirtualEventRegistrationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable), nil +} +// ToDeleteRequestInformation delete navigation property registrations for solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get the properties and relationships of a virtualEventRegistration object. +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property registrations in solutions +// returns a *RequestInformation when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventRegistrationable, requestConfiguration *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) WithUrl(rawUrl string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go index bb641db931..dd2b906f2e 100644 --- a/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go +++ b/solutions/virtual_events_webinars_virtual_event_webinar_item_request_builder.go @@ -113,11 +113,31 @@ func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Patch(ctx c } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.VirtualEventWebinarable), nil } +// Presenters provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. +// returns a *VirtualEventsWebinarsItemPresentersRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Presenters()(*VirtualEventsWebinarsItemPresentersRequestBuilder) { + return NewVirtualEventsWebinarsItemPresentersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RegistrationConfiguration provides operations to manage the registrationConfiguration property of the microsoft.graph.virtualEventWebinar entity. +// returns a *VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationConfiguration()(*VirtualEventsWebinarsItemRegistrationConfigurationRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Registrations provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. // returns a *VirtualEventsWebinarsItemRegistrationsRequestBuilder when successful func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Registrations()(*VirtualEventsWebinarsItemRegistrationsRequestBuilder) { return NewVirtualEventsWebinarsItemRegistrationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// RegistrationsWithEmail provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +// returns a *VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationsWithEmail(email *string)(*VirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithEmailRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, email) +} +// RegistrationsWithUserId provides operations to manage the registrations property of the microsoft.graph.virtualEventWebinar entity. +// returns a *VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder when successful +func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) RegistrationsWithUserId(userId *string)(*VirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilder) { + return NewVirtualEventsWebinarsItemRegistrationsWithUserIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, userId) +} // Sessions provides operations to manage the sessions property of the microsoft.graph.virtualEvent entity. // returns a *VirtualEventsWebinarsItemSessionsRequestBuilder when successful func (m *VirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Sessions()(*VirtualEventsWebinarsItemSessionsRequestBuilder) { diff --git a/storage/00450c0460aab7e3605b9fe062e9ec2ccc8084674ebeca516cd59518e31f263e.go b/storage/00450c0460aab7e3605b9fe062e9ec2ccc8084674ebeca516cd59518e31f263e.go deleted file mode 100644 index 265b539bdc..0000000000 --- a/storage/00450c0460aab7e3605b9fe062e9ec2ccc8084674ebeca516cd59518e31f263e.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetQueryParameters represents the legend for the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property legend for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartLegend entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the legend for the chart. Read-only. -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// Patch update the navigation property legend in storage -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// ToDeleteRequestInformation delete navigation property legend for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the legend for the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property legend in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/00d373459112ed462674d0d08e480b9b88acc07b4e53c20f0158ea518ccc449e.go b/storage/00d373459112ed462674d0d08e480b9b88acc07b4e53c20f0158ea518ccc449e.go deleted file mode 100644 index 9315be7d90..0000000000 --- a/storage/00d373459112ed462674d0d08e480b9b88acc07b4e53c20f0158ea518ccc449e.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder provides operations to manage the comments property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetQueryParameters represents a collection of comments in a workbook. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property comments for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of comments in a workbook. -// returns a WorkbookCommentable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable), nil -} -// Patch update the navigation property comments in storage -// returns a WorkbookCommentable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable), nil -} -// Replies provides operations to manage the replies property of the microsoft.graph.workbookComment entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) Replies()(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property comments for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of comments in a workbook. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property comments in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/012ba6fff854ac9435237972a925515a7544590398aa1a331cf55b346feb2c46.go b/storage/012ba6fff854ac9435237972a925515a7544590398aa1a331cf55b346feb2c46.go deleted file mode 100644 index 7de1572b17..0000000000 --- a/storage/012ba6fff854ac9435237972a925515a7544590398aa1a331cf55b346feb2c46.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/01d536792b47145b2b31ee06fed4d56790c0ed2911df062fde86f8ba1543de80.go b/storage/01d536792b47145b2b31ee06fed4d56790c0ed2911df062fde86f8ba1543de80.go deleted file mode 100644 index 9bd6bc96d0..0000000000 --- a/storage/01d536792b47145b2b31ee06fed4d56790c0ed2911df062fde86f8ba1543de80.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder provides operations to call the applyFontColorFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyFontColorFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyFontColorFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/029ee763c828f0f607001e4587ed8d051e1409165acb855a2e5584d5f3fa9f36.go b/storage/029ee763c828f0f607001e4587ed8d051e1409165acb855a2e5584d5f3fa9f36.go deleted file mode 100644 index 3c1b761438..0000000000 --- a/storage/029ee763c828f0f607001e4587ed8d051e1409165acb855a2e5584d5f3fa9f36.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetQueryParameters represents chart axes. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/axes{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property axes for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart axes. Read-only. -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// Patch update the navigation property axes in storage -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// ToDeleteRequestInformation delete navigation property axes for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart axes. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property axes in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/02d53328a2abd397cb107e89d794f2a59a9bb79cf76df133848081836f2436d6.go b/storage/02d53328a2abd397cb107e89d794f2a59a9bb79cf76df133848081836f2436d6.go deleted file mode 100644 index 0f60d5c1ef..0000000000 --- a/storage/02d53328a2abd397cb107e89d794f2a59a9bb79cf76df133848081836f2436d6.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/036d4d4118e12ddcb6908f5f3707ea13495e768818f200dcfdea52f211af3a6c.go b/storage/036d4d4118e12ddcb6908f5f3707ea13495e768818f200dcfdea52f211af3a6c.go deleted file mode 100644 index f29e8380bd..0000000000 --- a/storage/036d4d4118e12ddcb6908f5f3707ea13495e768818f200dcfdea52f211af3a6c.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder provides operations to manage the operations property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetQueryParameters the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations/{workbookOperation%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property operations for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -// returns a WorkbookOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable), nil -} -// Patch update the navigation property operations in storage -// returns a WorkbookOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable), nil -} -// ToDeleteRequestInformation delete navigation property operations for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property operations in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/03ad27ccf0797814c630cacc88f5d6e7c117846da526c8fcbdcf0c7030fdb06c.go b/storage/03ad27ccf0797814c630cacc88f5d6e7c117846da526c8fcbdcf0c7030fdb06c.go deleted file mode 100644 index bb555f523c..0000000000 --- a/storage/03ad27ccf0797814c630cacc88f5d6e7c117846da526c8fcbdcf0c7030fdb06c.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the filter on the given column. -// 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/filter-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the filter on the given column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/040694365043686e95d7e1a47988df99622fd0022217c1b9faafb2747132277f.go b/storage/040694365043686e95d7e1a47988df99622fd0022217c1b9faafb2747132277f.go deleted file mode 100644 index 9c903fb4dc..0000000000 --- a/storage/040694365043686e95d7e1a47988df99622fd0022217c1b9faafb2747132277f.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the totals row of the column. -// returns a WorkbookRangeable 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/tablecolumn-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the totals row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/04c671e897dfd6471edb3d5e2c96da7d7c4b4de4445db004184fabaab93b820f.go b/storage/04c671e897dfd6471edb3d5e2c96da7d7c4b4de4445db004184fabaab93b820f.go deleted file mode 100644 index 4e911efa68..0000000000 --- a/storage/04c671e897dfd6471edb3d5e2c96da7d7c4b4de4445db004184fabaab93b820f.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/054fed45b1c42cc3ab1b7ce8e8d29bade2ecde21d25866912825dc0d286e71ec.go b/storage/054fed45b1c42cc3ab1b7ce8e8d29bade2ecde21d25866912825dc0d286e71ec.go deleted file mode 100644 index a358542512..0000000000 --- a/storage/054fed45b1c42cc3ab1b7ce8e8d29bade2ecde21d25866912825dc0d286e71ec.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/0583b16e6a604a316fca83c164ae2f8a37b2433d164c3a0f2933573a68a3d905.go b/storage/0583b16e6a604a316fca83c164ae2f8a37b2433d164c3a0f2933573a68a3d905.go deleted file mode 100644 index 1e5bf9f977..0000000000 --- a/storage/0583b16e6a604a316fca83c164ae2f8a37b2433d164c3a0f2933573a68a3d905.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property dataLabels for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartDataLabels entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the data labels on the chart. Read-only. -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// Patch update the navigation property dataLabels in storage -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// ToDeleteRequestInformation delete navigation property dataLabels for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the data labels on the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property dataLabels in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/07b91cf1c58236d32a32ff60408aa38f9057372bc1d289c96434c11bc4c9402f.go b/storage/07b91cf1c58236d32a32ff60408aa38f9057372bc1d289c96434c11bc4c9402f.go deleted file mode 100644 index 8f26e01727..0000000000 --- a/storage/07b91cf1c58236d32a32ff60408aa38f9057372bc1d289c96434c11bc4c9402f.go +++ /dev/null @@ -1,93 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width})", pathParameters), - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseable), nil -} -// GetAsImageWithWidthGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) GetAsImageWithWidthGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/07ff66a7addd801afb2bd73334f7c9e02d8e561e44403bc765c5638022b5dc9f.go b/storage/07ff66a7addd801afb2bd73334f7c9e02d8e561e44403bc765c5638022b5dc9f.go deleted file mode 100644 index a99fa33bc0..0000000000 --- a/storage/07ff66a7addd801afb2bd73334f7c9e02d8e561e44403bc765c5638022b5dc9f.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the range object associated with the entire table. -// returns a WorkbookRangeable 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/table-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation get the range object associated with the entire table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/08588ed288185de3028dbd321efa2b0feac3689ae2e2e54b36202352ef4cec50.go b/storage/08588ed288185de3028dbd321efa2b0feac3689ae2e2e54b36202352ef4cec50.go deleted file mode 100644 index df684dcf8e..0000000000 --- a/storage/08588ed288185de3028dbd321efa2b0feac3689ae2e2e54b36202352ef4cec50.go +++ /dev/null @@ -1,156 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody instantiates a new FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody()(*FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) { - m := &FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["hubSiteUrls"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetHubSiteUrls(res) - } - return nil - } - res["propagateToExistingLists"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPropagateToExistingLists(val) - } - return nil - } - return res -} -// GetHubSiteUrls gets the hubSiteUrls property value. The hubSiteUrls property -// returns a []string when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) GetHubSiteUrls()([]string) { - val, err := m.GetBackingStore().Get("hubSiteUrls") - if err != nil { - panic(err) - } - if val != nil { - return val.([]string) - } - return nil -} -// GetPropagateToExistingLists gets the propagateToExistingLists property value. The propagateToExistingLists property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) GetPropagateToExistingLists()(*bool) { - val, err := m.GetBackingStore().Get("propagateToExistingLists") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetHubSiteUrls() != nil { - err := writer.WriteCollectionOfStringValues("hubSiteUrls", m.GetHubSiteUrls()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("propagateToExistingLists", m.GetPropagateToExistingLists()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetHubSiteUrls sets the hubSiteUrls property value. The hubSiteUrls property -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) SetHubSiteUrls(value []string)() { - err := m.GetBackingStore().Set("hubSiteUrls", value) - if err != nil { - panic(err) - } -} -// SetPropagateToExistingLists sets the propagateToExistingLists property value. The propagateToExistingLists property -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBody) SetPropagateToExistingLists(value *bool)() { - err := m.GetBackingStore().Set("propagateToExistingLists", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHubSiteUrls()([]string) - GetPropagateToExistingLists()(*bool) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHubSiteUrls(value []string)() - SetPropagateToExistingLists(value *bool)() -} diff --git a/storage/0917a27ff56eb260f1c28cc3b6fdde67ae23a43069660ce21befc34af3982dd8.go b/storage/0917a27ff56eb260f1c28cc3b6fdde67ae23a43069660ce21befc34af3982dd8.go deleted file mode 100644 index b6b03048d3..0000000000 --- a/storage/0917a27ff56eb260f1c28cc3b6fdde67ae23a43069660ce21befc34af3982dd8.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/0c3d06f8a628f03e851e03cfd82f32df7b49191faa664032f47df90381c58f1d.go b/storage/0c3d06f8a628f03e851e03cfd82f32df7b49191faa664032f47df90381c58f1d.go deleted file mode 100644 index d0ef9f4a0d..0000000000 --- a/storage/0c3d06f8a628f03e851e03cfd82f32df7b49191faa664032f47df90381c58f1d.go +++ /dev/null @@ -1,182 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(urlParams, requestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property columns for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Filter provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Filter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property columns in storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property columns in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/0c460a1627b35694171db320043c0faa1f9f4114a877380237f234eb6fdb83a9.go b/storage/0c460a1627b35694171db320043c0faa1f9f4114a877380237f234eb6fdb83a9.go deleted file mode 100644 index 6b9d28d3fe..0000000000 --- a/storage/0c460a1627b35694171db320043c0faa1f9f4114a877380237f234eb6fdb83a9.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder provides operations to manage the series property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetQueryParameters represents either a single series or collection of series in the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents either a single series or collection of series in the chart. Read-only. -// returns a WorkbookChartSeriesCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable), nil -} -// Post create new navigation property to series for storage -// returns a WorkbookChartSeriesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// ToGetRequestInformation represents either a single series or collection of series in the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to series for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/0f379db97cd142a929b79a1535911a0ed8b190446eb25409b964f025804a3157.go b/storage/0f379db97cd142a929b79a1535911a0ed8b190446eb25409b964f025804a3157.go deleted file mode 100644 index 6e914cc701..0000000000 --- a/storage/0f379db97cd142a929b79a1535911a0ed8b190446eb25409b964f025804a3157.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder provides operations to call the applyBottomItemsFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyBottomItemsFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyBottomItemsFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/0fa1993471c2b71b0efa1f6f9510a38e52a53a89d49d118ae98918920dd44283.go b/storage/0fa1993471c2b71b0efa1f6f9510a38e52a53a89d49d118ae98918920dd44283.go deleted file mode 100644 index 2cd5c98870..0000000000 --- a/storage/0fa1993471c2b71b0efa1f6f9510a38e52a53a89d49d118ae98918920dd44283.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetQueryParameters represents the axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the axis title. Read-only. -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/139be4396dc1a089c8fed3d0c40397cf1e4c2c9677a775d65d3b0994be77adf8.go b/storage/139be4396dc1a089c8fed3d0c40397cf1e4c2c9677a775d65d3b0994be77adf8.go deleted file mode 100644 index 52edec9ce0..0000000000 --- a/storage/139be4396dc1a089c8fed3d0c40397cf1e4c2c9677a775d65d3b0994be77adf8.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/157794086895735f41bd5696a0f4cdfe2d7ec938e94f79be6f54848d67e7740f.go b/storage/157794086895735f41bd5696a0f4cdfe2d7ec938e94f79be6f54848d67e7740f.go deleted file mode 100644 index 4f21c9cbd3..0000000000 --- a/storage/157794086895735f41bd5696a0f4cdfe2d7ec938e94f79be6f54848d67e7740f.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/15ae611692a364461384a795f118545b82ceacb62a6758c9402588226a5aac49.go b/storage/15ae611692a364461384a795f118545b82ceacb62a6758c9402588226a5aac49.go deleted file mode 100644 index 14b2fa3abb..0000000000 --- a/storage/15ae611692a364461384a795f118545b82ceacb62a6758c9402588226a5aac49.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/1622d032e4df44d863c8b390661c3c794d64137028e7a8a6545b7b08d9cdffb6.go b/storage/1622d032e4df44d863c8b390661c3c794d64137028e7a8a6545b7b08d9cdffb6.go deleted file mode 100644 index 1b48b91b75..0000000000 --- a/storage/1622d032e4df44d863c8b390661c3c794d64137028e7a8a6545b7b08d9cdffb6.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable instead. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse struct { - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse()(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse{ - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: *NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable instead. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable interface { - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/17f1487ada18acfd8b917badb3a836bd1ced0c262e595032636c475ada40d928.go b/storage/17f1487ada18acfd8b917badb3a836bd1ced0c262e595032636c475ada40d928.go deleted file mode 100644 index 6260c3919b..0000000000 --- a/storage/17f1487ada18acfd8b917badb3a836bd1ced0c262e595032636c475ada40d928.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder provides operations to call the restore method. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/restore", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderInternal(urlParams, requestAdapter) -} -// Post restore a document set version. -// 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/documentsetversion-restore?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation restore a document set version. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/1920fc744584766fafc67a9607b155378d4c24b076148d40542827308d355ec7.go b/storage/1920fc744584766fafc67a9607b155378d4c24b076148d40542827308d355ec7.go deleted file mode 100644 index ebdf5ca968..0000000000 --- a/storage/1920fc744584766fafc67a9607b155378d4c24b076148d40542827308d355ec7.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder provides operations to call the getCompatibleHubContentTypes method. -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/getCompatibleHubContentTypes(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. -// Deprecated: This method is obsolete. Use GetAsGetCompatibleHubContentTypesGetResponse instead. -// returns a FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseable 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/contenttype-getcompatiblehubcontenttypes?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseable), nil -} -// GetAsGetCompatibleHubContentTypesGetResponse get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. -// returns a FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable 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/contenttype-getcompatiblehubcontenttypes?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) GetAsGetCompatibleHubContentTypesGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable), nil -} -// ToGetRequestInformation get a list of compatible content types from the content type hub that can be added to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: addCopyFromContentTypeHub and the blog post Syntex Product Updates – August 2021. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/19b413c288ac161c4d30343ed4754f789d8a8a95c83dc946205fdfdfa56e124c.go b/storage/19b413c288ac161c4d30343ed4754f789d8a8a95c83dc946205fdfdfa56e124c.go deleted file mode 100644 index 7b86a589f7..0000000000 --- a/storage/19b413c288ac161c4d30343ed4754f789d8a8a95c83dc946205fdfdfa56e124c.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/19d0fd323d7152369a95daef00387f0d55baf91ecb3c6c404998a8d53a11574e.go b/storage/19d0fd323d7152369a95daef00387f0d55baf91ecb3c6c404998a8d53a11574e.go deleted file mode 100644 index 611c145eb7..0000000000 --- a/storage/19d0fd323d7152369a95daef00387f0d55baf91ecb3c6c404998a8d53a11574e.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder provides operations to call the unprotect method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/unprotect", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderInternal(urlParams, requestAdapter) -} -// Post unprotect a worksheet -// 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/worksheetprotection-unprotect?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation unprotect a worksheet -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/19d40457b692df3e898984606c4ec8254d87594b9aa1bf5b1b287c53ffe8882c.go b/storage/19d40457b692df3e898984606c4ec8254d87594b9aa1bf5b1b287c53ffe8882c.go deleted file mode 100644 index c86908a828..0000000000 --- a/storage/19d40457b692df3e898984606c4ec8254d87594b9aa1bf5b1b287c53ffe8882c.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCount gets the count property value. The count property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetCount()(*int32) { - val, err := m.GetBackingStore().Get("count") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetCount(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("count", m.GetCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCount sets the count property value. The count property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetCount(value *int32)() { - err := m.GetBackingStore().Set("count", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCount()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCount(value *int32)() -} diff --git a/storage/1adaa60d2c0e69dde781c901c7b478deb1daf0c7d6dce2ac25971980d5175377.go b/storage/1adaa60d2c0e69dde781c901c7b478deb1daf0c7d6dce2ac25971980d5175377.go deleted file mode 100644 index c0b0fe511c..0000000000 --- a/storage/1adaa60d2c0e69dde781c901c7b478deb1daf0c7d6dce2ac25971980d5175377.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the range object associated with the entire table. -// returns a WorkbookRangeable 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/table-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation get the range object associated with the entire table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/1b453424d92cde57fa7ac665063f0a38addbcf9d3ad3e5bc22e7ec20a124a208.go b/storage/1b453424d92cde57fa7ac665063f0a38addbcf9d3ad3e5bc22e7ec20a124a208.go deleted file mode 100644 index cbdd3a18aa..0000000000 --- a/storage/1b453424d92cde57fa7ac665063f0a38addbcf9d3ad3e5bc22e7ec20a124a208.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["icon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookIconFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIcon(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)) - } - return nil - } - return res -} -// GetIcon gets the icon property value. The icon property -// returns a WorkbookIconable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetIcon()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) { - val, err := m.GetBackingStore().Get("icon") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("icon", m.GetIcon()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIcon sets the icon property value. The icon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetIcon(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)() { - err := m.GetBackingStore().Set("icon", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIcon()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIcon(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)() -} diff --git a/storage/1ba0e15fb2238662e9a01edeb4ef887893229871e41d37713439506fbc79f8b0.go b/storage/1ba0e15fb2238662e9a01edeb4ef887893229871e41d37713439506fbc79f8b0.go deleted file mode 100644 index 09fc4f77a6..0000000000 --- a/storage/1ba0e15fb2238662e9a01edeb4ef887893229871e41d37713439506fbc79f8b0.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetQueryParameters the worksheet containing the current chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current chart. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/1c10e7ca13bd7e32891f6d77110ed326e99381e6a98fcdb2994afc5122e6365e.go b/storage/1c10e7ca13bd7e32891f6d77110ed326e99381e6a98fcdb2994afc5122e6365e.go deleted file mode 100644 index e372615c19..0000000000 --- a/storage/1c10e7ca13bd7e32891f6d77110ed326e99381e6a98fcdb2994afc5122e6365e.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/1ed54ea3c5e9629210b905f38dfbaff40d07b384a1a38bac1e03d73285816610.go b/storage/1ed54ea3c5e9629210b905f38dfbaff40d07b384a1a38bac1e03d73285816610.go deleted file mode 100644 index 1edbc54c95..0000000000 --- a/storage/1ed54ea3c5e9629210b905f38dfbaff40d07b384a1a38bac1e03d73285816610.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/1fc6a035a580d5adc9aab47d5a331c6b0ad566cce322842e38c7e301e5002db1.go b/storage/1fc6a035a580d5adc9aab47d5a331c6b0ad566cce322842e38c7e301e5002db1.go deleted file mode 100644 index a269709bbc..0000000000 --- a/storage/1fc6a035a580d5adc9aab47d5a331c6b0ad566cce322842e38c7e301e5002db1.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2067f0f447ca7fa74d34b3cabe63dd25a2a09ecca4a04a3422af4e317b7eb4f6.go b/storage/2067f0f447ca7fa74d34b3cabe63dd25a2a09ecca4a04a3422af4e317b7eb4f6.go deleted file mode 100644 index 2f9164ac9c..0000000000 --- a/storage/2067f0f447ca7fa74d34b3cabe63dd25a2a09ecca4a04a3422af4e317b7eb4f6.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetQueryParameters represents the legend for the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/legend{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property legend for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the legend for the chart. Read-only. -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// Patch update the navigation property legend in storage -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// ToDeleteRequestInformation delete navigation property legend for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the legend for the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property legend in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2094354b7f13859f82d23c76f7905ce9ec8ec931dcb87a800b6640520cbce277.go b/storage/2094354b7f13859f82d23c76f7905ce9ec8ec931dcb87a800b6640520cbce277.go deleted file mode 100644 index 4fe88291ef..0000000000 --- a/storage/2094354b7f13859f82d23c76f7905ce9ec8ec931dcb87a800b6640520cbce277.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder provides operations to call the applyBottomPercentFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyBottomPercentFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyBottomPercentFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2128bda6bf84a819212a380fd157eda970584bae308138b46d3a079b444ee051.go b/storage/2128bda6bf84a819212a380fd157eda970584bae308138b46d3a079b444ee051.go deleted file mode 100644 index 22fb3f446f..0000000000 --- a/storage/2128bda6bf84a819212a380fd157eda970584bae308138b46d3a079b444ee051.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/22a8a2fe17bf8ad265b471bd0f896de93711132c0f3e99849741289a99239c8c.go b/storage/22a8a2fe17bf8ad265b471bd0f896de93711132c0f3e99849741289a99239c8c.go deleted file mode 100644 index 9dcc2aa6e7..0000000000 --- a/storage/22a8a2fe17bf8ad265b471bd0f896de93711132c0f3e99849741289a99239c8c.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder provides operations to call the setPosition method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setPosition", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post positions the chart relative to cells on the worksheet. -// 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/chart-setposition?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation positions the chart relative to cells on the worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/22f6e6efae6577c2113451812f69a9ee8f85b3eb6504a6deb4e187072f5969a4.go b/storage/22f6e6efae6577c2113451812f69a9ee8f85b3eb6504a6deb4e187072f5969a4.go deleted file mode 100644 index c86aabf301..0000000000 --- a/storage/22f6e6efae6577c2113451812f69a9ee8f85b3eb6504a6deb4e187072f5969a4.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder provides operations to call the applyFontColorFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyFontColorFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyFontColorFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyFontColorFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/23ce9a5861772dcbbff52507d706cbe081b89d60576f2a84dce32e64e5c4a9c7.go b/storage/23ce9a5861772dcbbff52507d706cbe081b89d60576f2a84dce32e64e5c4a9c7.go deleted file mode 100644 index 08b2d1aa10..0000000000 --- a/storage/23ce9a5861772dcbbff52507d706cbe081b89d60576f2a84dce32e64e5c4a9c7.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["seriesBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSeriesBy(val) - } - return nil - } - res["sourceData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSourceData(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSeriesBy gets the seriesBy property value. The seriesBy property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) GetSeriesBy()(*string) { - val, err := m.GetBackingStore().Get("seriesBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSourceData gets the sourceData property value. The sourceData property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sourceData") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("seriesBy", m.GetSeriesBy()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sourceData", m.GetSourceData()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSeriesBy sets the seriesBy property value. The seriesBy property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) SetSeriesBy(value *string)() { - err := m.GetBackingStore().Set("seriesBy", value) - if err != nil { - panic(err) - } -} -// SetSourceData sets the sourceData property value. The sourceData property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBody) SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sourceData", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSeriesBy()(*string) - GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSeriesBy(value *string)() - SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/24be3b7bde897c0f1b6b7b7fbd4c78a8d3f5f071e1288401a4e37e38149f5c60.go b/storage/24be3b7bde897c0f1b6b7b7fbd4c78a8d3f5f071e1288401a4e37e38149f5c60.go deleted file mode 100644 index db410b8e6d..0000000000 --- a/storage/24be3b7bde897c0f1b6b7b7fbd4c78a8d3f5f071e1288401a4e37e38149f5c60.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, address *string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')", pathParameters), - } - if address != nil { - m.BaseRequestBuilder.PathParameters["address"] = *address - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2757ca2cd2cfc7719dfbfd9b46b72ec4bd5901d47960da00bb4d0cfbc51d21ab.go b/storage/2757ca2cd2cfc7719dfbfd9b46b72ec4bd5901d47960da00bb4d0cfbc51d21ab.go deleted file mode 100644 index 968e2cb05f..0000000000 --- a/storage/2757ca2cd2cfc7719dfbfd9b46b72ec4bd5901d47960da00bb4d0cfbc51d21ab.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetQueryParameters the worksheet containing the current chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current chart. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/27817467a20950a8a59b88ed768b270e57c0f2c1b0d407ad4e3f36a1c0a2a6f4.go b/storage/27817467a20950a8a59b88ed768b270e57c0f2c1b0d407ad4e3f36a1c0a2a6f4.go deleted file mode 100644 index 3367028e97..0000000000 --- a/storage/27817467a20950a8a59b88ed768b270e57c0f2c1b0d407ad4e3f36a1c0a2a6f4.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder provides operations to manage the series property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetQueryParameters represents either a single series or collection of series in the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookChartSeriesId provides operations to manage the series property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) ByWorkbookChartSeriesId(workbookChartSeriesId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookChartSeriesId != "" { - urlTplParams["workbookChartSeries%2Did"] = workbookChartSeriesId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents either a single series or collection of series in the chart. Read-only. -// returns a WorkbookChartSeriesCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to series for storage -// returns a WorkbookChartSeriesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// ToGetRequestInformation represents either a single series or collection of series in the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to series for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/27c85b37d51de6417954afeab5d92d9920c35fb953631e8c4b647080985bfdd4.go b/storage/27c85b37d51de6417954afeab5d92d9920c35fb953631e8c4b647080985bfdd4.go deleted file mode 100644 index 2afdb368f8..0000000000 --- a/storage/27c85b37d51de6417954afeab5d92d9920c35fb953631e8c4b647080985bfdd4.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder provides operations to call the setPosition method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setPosition", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post positions the chart relative to cells on the worksheet. -// 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/chart-setposition?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation positions the chart relative to cells on the worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/28def903899622b757d280d3e4aa366432fb42bb45f21ea1f7bf792f5373215e.go b/storage/28def903899622b757d280d3e4aa366432fb42bb45f21ea1f7bf792f5373215e.go deleted file mode 100644 index 7eceec74d1..0000000000 --- a/storage/28def903899622b757d280d3e4aa366432fb42bb45f21ea1f7bf792f5373215e.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetQueryParameters exposes the itemActivities represented in this itemActivityStat resource. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property activities for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// DriveItem provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) DriveItem()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get exposes the itemActivities represented in this itemActivityStat resource. -// returns a ItemActivityable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable), nil -} -// Patch update the navigation property activities in storage -// returns a ItemActivityable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable), nil -} -// ToDeleteRequestInformation delete navigation property activities for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation exposes the itemActivities represented in this itemActivityStat resource. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property activities in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/29ab95f2811276aeaf8e159d82c2ebbcdfa67c5fb0de21166c2b917a811f9a31.go b/storage/29ab95f2811276aeaf8e159d82c2ebbcdfa67c5fb0de21166c2b917a811f9a31.go deleted file mode 100644 index 052f8e10a3..0000000000 --- a/storage/29ab95f2811276aeaf8e159d82c2ebbcdfa67c5fb0de21166c2b917a811f9a31.go +++ /dev/null @@ -1,177 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder provides operations to manage the valueAxis property of the microsoft.graph.workbookChartAxes entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetQueryParameters represents the value axis in an axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property valueAxis for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the value axis in an axis. Read-only. -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// MajorGridlines provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) MajorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MinorGridlines provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) MinorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property valueAxis in storage -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property valueAxis for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the value axis in an axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property valueAxis in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/29afe30b3b3c29cc27647fb8fdbd4762edc84b540aa2eba20fc82e36478844a5.go b/storage/29afe30b3b3c29cc27647fb8fdbd4762edc84b540aa2eba20fc82e36478844a5.go deleted file mode 100644 index a182e92777..0000000000 --- a/storage/29afe30b3b3c29cc27647fb8fdbd4762edc84b540aa2eba20fc82e36478844a5.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder provides operations to call the setData method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setData", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderInternal(urlParams, requestAdapter) -} -// Post resets the source data for the chart. -// 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/chart-setdata?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation resets the source data for the chart. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2a717e9f5f0671a4adc850cdf366eb867f9b88cc6064eaff42cd8bb3155ab16a.go b/storage/2a717e9f5f0671a4adc850cdf366eb867f9b88cc6064eaff42cd8bb3155ab16a.go deleted file mode 100644 index 84a745efaf..0000000000 --- a/storage/2a717e9f5f0671a4adc850cdf366eb867f9b88cc6064eaff42cd8bb3155ab16a.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["options"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetProtectionOptionsFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOptions(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable)) - } - return nil - } - return res -} -// GetOptions gets the options property value. The options property -// returns a WorkbookWorksheetProtectionOptionsable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) GetOptions()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable) { - val, err := m.GetBackingStore().Get("options") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("options", m.GetOptions()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetOptions sets the options property value. The options property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBody) SetOptions(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable)() { - err := m.GetBackingStore().Set("options", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetOptions()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetOptions(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionOptionsable)() -} diff --git a/storage/2a9ee28e767233ec52986dedffa63471fa1f6fb4f3fe66dc7dbcd056ce4f5772.go b/storage/2a9ee28e767233ec52986dedffa63471fa1f6fb4f3fe66dc7dbcd056ce4f5772.go deleted file mode 100644 index a2fd8163b8..0000000000 --- a/storage/2a9ee28e767233ec52986dedffa63471fa1f6fb4f3fe66dc7dbcd056ce4f5772.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/2b766ee90888953fb55780147c05be663a6eec254eaae21b0c39ec0a03b336b1.go b/storage/2b766ee90888953fb55780147c05be663a6eec254eaae21b0c39ec0a03b336b1.go deleted file mode 100644 index eab53d05f7..0000000000 --- a/storage/2b766ee90888953fb55780147c05be663a6eec254eaae21b0c39ec0a03b336b1.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["percent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetPercent(val) - } - return nil - } - return res -} -// GetPercent gets the percent property value. The percent property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetPercent()(*int32) { - val, err := m.GetBackingStore().Get("percent") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("percent", m.GetPercent()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPercent sets the percent property value. The percent property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetPercent(value *int32)() { - err := m.GetBackingStore().Set("percent", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPercent()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPercent(value *int32)() -} diff --git a/storage/2be76f19b19aa60be4fc31766d14009230b38f6560874111ac8a6934c52af372.go b/storage/2be76f19b19aa60be4fc31766d14009230b38f6560874111ac8a6934c52af372.go deleted file mode 100644 index 81aaed9d4a..0000000000 --- a/storage/2be76f19b19aa60be4fc31766d14009230b38f6560874111ac8a6934c52af372.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2c7d439d95c267f62c1d493f5ae5f0d310fb74a5960cff0ee1f37b55b9901e0c.go b/storage/2c7d439d95c267f62c1d493f5ae5f0d310fb74a5960cff0ee1f37b55b9901e0c.go deleted file mode 100644 index fc2796a135..0000000000 --- a/storage/2c7d439d95c267f62c1d493f5ae5f0d310fb74a5960cff0ee1f37b55b9901e0c.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/2c94b6529103e146e16be216e2c586f5402780e712a388dcf7f6e991a13f187a.go b/storage/2c94b6529103e146e16be216e2c586f5402780e712a388dcf7f6e991a13f187a.go deleted file mode 100644 index 37c77125a4..0000000000 --- a/storage/2c94b6529103e146e16be216e2c586f5402780e712a388dcf7f6e991a13f187a.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCount gets the count property value. The count property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetCount()(*int32) { - val, err := m.GetBackingStore().Get("count") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetCount(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("count", m.GetCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCount sets the count property value. The count property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetCount(value *int32)() { - err := m.GetBackingStore().Set("count", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCount()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCount(value *int32)() -} diff --git a/storage/2ca4e4baa1145e1677f9ea356867de35ee67f792d22864d6a3a694a12fa6ac42.go b/storage/2ca4e4baa1145e1677f9ea356867de35ee67f792d22864d6a3a694a12fa6ac42.go deleted file mode 100644 index 0c38b88129..0000000000 --- a/storage/2ca4e4baa1145e1677f9ea356867de35ee67f792d22864d6a3a694a12fa6ac42.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/dataLabels{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property dataLabels for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the data labels on the chart. Read-only. -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// Patch update the navigation property dataLabels in storage -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// ToDeleteRequestInformation delete navigation property dataLabels for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the data labels on the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property dataLabels in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2d29b00db62b7f536315a848bc649d09b01a01b932ea0604651695e3cc2beb02.go b/storage/2d29b00db62b7f536315a848bc649d09b01a01b932ea0604651695e3cc2beb02.go deleted file mode 100644 index 3fb31c5591..0000000000 --- a/storage/2d29b00db62b7f536315a848bc649d09b01a01b932ea0604651695e3cc2beb02.go +++ /dev/null @@ -1,217 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Apply provides operations to call the apply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Apply()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyBottomItemsFilter provides operations to call the applyBottomItemsFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyBottomItemsFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyBottomPercentFilter provides operations to call the applyBottomPercentFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyBottomPercentFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyCellColorFilter provides operations to call the applyCellColorFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyCellColorFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyCustomFilter provides operations to call the applyCustomFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyCustomFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyDynamicFilter provides operations to call the applyDynamicFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyDynamicFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyFontColorFilter provides operations to call the applyFontColorFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyFontColorFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyIconFilter provides operations to call the applyIconFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyIconFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyTopItemsFilter provides operations to call the applyTopItemsFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyTopItemsFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyTopPercentFilter provides operations to call the applyTopPercentFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyTopPercentFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyValuesFilter provides operations to call the applyValuesFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ApplyValuesFilter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property filter for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get retrieve the filter applied to the column. Read-only. -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// Patch update the navigation property filter in storage -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// ToDeleteRequestInformation delete navigation property filter for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property filter in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2dd0f618d996eec28a335d76aaaa554944776bb5183f3277c349a894f04bf8e0.go b/storage/2dd0f618d996eec28a335d76aaaa554944776bb5183f3277c349a894f04bf8e0.go deleted file mode 100644 index e9cc9a68e8..0000000000 --- a/storage/2dd0f618d996eec28a335d76aaaa554944776bb5183f3277c349a894f04bf8e0.go +++ /dev/null @@ -1,177 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder provides operations to manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetQueryParameters represents the series axis of a 3-dimensional chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property seriesAxis for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the series axis of a 3-dimensional chart. Read-only. -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// MajorGridlines provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) MajorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MinorGridlines provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) MinorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property seriesAxis in storage -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property seriesAxis for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the series axis of a 3-dimensional chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property seriesAxis in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2f2da7500c1bc09801e8c14faf3e945a8df9a6f1f2e02cfeb52ef20fbaf32908.go b/storage/2f2da7500c1bc09801e8c14faf3e945a8df9a6f1f2e02cfeb52ef20fbaf32908.go deleted file mode 100644 index 9dc8599ef8..0000000000 --- a/storage/2f2da7500c1bc09801e8c14faf3e945a8df9a6f1f2e02cfeb52ef20fbaf32908.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder provides operations to call the reapplyFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/reapplyFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies all the filters currently on the table. -// 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/table-reapplyfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies all the filters currently on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/2fc75a3232bcd2daebe2fe81ee0a02f699c059f7e290cb126d9caed2e6e300a6.go b/storage/2fc75a3232bcd2daebe2fe81ee0a02f699c059f7e290cb126d9caed2e6e300a6.go deleted file mode 100644 index 4f3e62ed10..0000000000 --- a/storage/2fc75a3232bcd2daebe2fe81ee0a02f699c059f7e290cb126d9caed2e6e300a6.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3091bd980fc29b0d9be83c61c2c518afd87a490489f03094e649f2699eec478f.go b/storage/3091bd980fc29b0d9be83c61c2c518afd87a490489f03094e649f2699eec478f.go deleted file mode 100644 index 9d34808527..0000000000 --- a/storage/3091bd980fc29b0d9be83c61c2c518afd87a490489f03094e649f2699eec478f.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/30cb0d3e87be183e79c8b88b250e1c9cf4cc536be0e6808f79d8fde97ac57044.go b/storage/30cb0d3e87be183e79c8b88b250e1c9cf4cc536be0e6808f79d8fde97ac57044.go deleted file mode 100644 index 9de0474948..0000000000 --- a/storage/30cb0d3e87be183e79c8b88b250e1c9cf4cc536be0e6808f79d8fde97ac57044.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the entire column. -// returns a WorkbookRangeable 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/tablecolumn-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the entire column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/30e50f727cad2ba9f815b7c2b23e2d1ede03177352567f1f795baf9e4f8afb7c.go b/storage/30e50f727cad2ba9f815b7c2b23e2d1ede03177352567f1f795baf9e4f8afb7c.go deleted file mode 100644 index e0917f039e..0000000000 --- a/storage/30e50f727cad2ba9f815b7c2b23e2d1ede03177352567f1f795baf9e4f8afb7c.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for a chart data label. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3117a98702eea1fd6fd9ec367e352ef8c50149f5a90c6ee6210be81988b4b00b.go b/storage/3117a98702eea1fd6fd9ec367e352ef8c50149f5a90c6ee6210be81988b4b00b.go deleted file mode 100644 index 247115d581..0000000000 --- a/storage/3117a98702eea1fd6fd9ec367e352ef8c50149f5a90c6ee6210be81988b4b00b.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. -// returns a WorkbookTableRowable 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/tablerowcollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToPostRequestInformation adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/31581608d4860d7ed1607f8f06c02ba974e8024e73dd50c747852b7d6e1ae33a.go b/storage/31581608d4860d7ed1607f8f06c02ba974e8024e73dd50c747852b7d6e1ae33a.go deleted file mode 100644 index 243554f85d..0000000000 --- a/storage/31581608d4860d7ed1607f8f06c02ba974e8024e73dd50c747852b7d6e1ae33a.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/315d0256cf1fcefa4560e757c39cab83db5730d403e01d417e0f50e9a701f8c1.go b/storage/315d0256cf1fcefa4560e757c39cab83db5730d403e01d417e0f50e9a701f8c1.go deleted file mode 100644 index 8d7e3d29de..0000000000 --- a/storage/315d0256cf1fcefa4560e757c39cab83db5730d403e01d417e0f50e9a701f8c1.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/3261c448f50ef55eb1945207b80ad145c220a80a354c52783a45625cef82cd90.go b/storage/3261c448f50ef55eb1945207b80ad145c220a80a354c52783a45625cef82cd90.go deleted file mode 100644 index facda5696f..0000000000 --- a/storage/3261c448f50ef55eb1945207b80ad145c220a80a354c52783a45625cef82cd90.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetQueryParameters represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/343f5093e97aa346df051776d6d92da5191df26e637436be08f6dd8ebdf0306d.go b/storage/343f5093e97aa346df051776d6d92da5191df26e637436be08f6dd8ebdf0306d.go deleted file mode 100644 index 8d19e72246..0000000000 --- a/storage/343f5093e97aa346df051776d6d92da5191df26e637436be08f6dd8ebdf0306d.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/34af67936e86edc2ae86adb77930393f1ba09b9abb13e3b4452bfbe60e9b5c9c.go b/storage/34af67936e86edc2ae86adb77930393f1ba09b9abb13e3b4452bfbe60e9b5c9c.go deleted file mode 100644 index 95a9413bac..0000000000 --- a/storage/34af67936e86edc2ae86adb77930393f1ba09b9abb13e3b4452bfbe60e9b5c9c.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/35692edde32e9548aa07efbba6b10638e32d7bf11b230eace3a595a5eb1aff2d.go b/storage/35692edde32e9548aa07efbba6b10638e32d7bf11b230eace3a595a5eb1aff2d.go deleted file mode 100644 index c3ec673b98..0000000000 --- a/storage/35692edde32e9548aa07efbba6b10638e32d7bf11b230eace3a595a5eb1aff2d.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder provides operations to call the applyDynamicFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyDynamicFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyDynamicFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/360a612c2e9d9aca8414e71f6c4c4fb4727793cc2e56d83e450f1705d82fd4dd.go b/storage/360a612c2e9d9aca8414e71f6c4c4fb4727793cc2e56d83e450f1705d82fd4dd.go deleted file mode 100644 index f61fe8e2c9..0000000000 --- a/storage/360a612c2e9d9aca8414e71f6c4c4fb4727793cc2e56d83e450f1705d82fd4dd.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder provides operations to call the refreshAll method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/refreshAll", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderInternal(urlParams, requestAdapter) -} -// Post refreshes the PivotTable within a given worksheet. -// 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/workbookpivottable-refreshall?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation refreshes the PivotTable within a given worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/37cd78a24d2accfcd2219197f90045dec60eb81e741145288f8f2e0e5228767f.go b/storage/37cd78a24d2accfcd2219197f90045dec60eb81e741145288f8f2e0e5228767f.go deleted file mode 100644 index 67c2744e60..0000000000 --- a/storage/37cd78a24d2accfcd2219197f90045dec60eb81e741145288f8f2e0e5228767f.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/39719410adbbb94d6413fa62c1f86667f1a7bcdb5238d1df25600021ea3309b0.go b/storage/39719410adbbb94d6413fa62c1f86667f1a7bcdb5238d1df25600021ea3309b0.go deleted file mode 100644 index afb5d5be9d..0000000000 --- a/storage/39719410adbbb94d6413fa62c1f86667f1a7bcdb5238d1df25600021ea3309b0.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder provides operations to call the clearFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/clearFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears all the filters currently applied on the table. -// 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/table-clearfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears all the filters currently applied on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3a3111cfe7d9787723d7651b3ccf3087be3e50e239560e28cb97c562fd548bf1.go b/storage/3a3111cfe7d9787723d7651b3ccf3087be3e50e239560e28cb97c562fd548bf1.go deleted file mode 100644 index 0c6b006ea1..0000000000 --- a/storage/3a3111cfe7d9787723d7651b3ccf3087be3e50e239560e28cb97c562fd548bf1.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseable), nil -} -// GetAsImageGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) GetAsImageGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3a7cad7c101a30562b898df2f04d6f073b39291e3872d4bf359bc45e48646d35.go b/storage/3a7cad7c101a30562b898df2f04d6f073b39291e3872d4bf359bc45e48646d35.go deleted file mode 100644 index d05b212072..0000000000 --- a/storage/3a7cad7c101a30562b898df2f04d6f073b39291e3872d4bf359bc45e48646d35.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetQueryParameters encapsulates the format properties for the chart area. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get encapsulates the format properties for the chart area. Read-only. -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation encapsulates the format properties for the chart area. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3b05b23859aa74538eb1a924559047a1b38b3c51b4e19ed70a107e5b2d28aafb.go b/storage/3b05b23859aa74538eb1a924559047a1b38b3c51b4e19ed70a107e5b2d28aafb.go deleted file mode 100644 index d6c5d1b09b..0000000000 --- a/storage/3b05b23859aa74538eb1a924559047a1b38b3c51b4e19ed70a107e5b2d28aafb.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/3b0b49a4c54839e4a425f30aa259467749d1cece6f20d2ae9557e21482493504.go b/storage/3b0b49a4c54839e4a425f30aa259467749d1cece6f20d2ae9557e21482493504.go deleted file mode 100644 index 71465bfef3..0000000000 --- a/storage/3b0b49a4c54839e4a425f30aa259467749d1cece6f20d2ae9557e21482493504.go +++ /dev/null @@ -1,172 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Apply provides operations to call the apply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Apply()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property sort for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the sorting for the table. Read-only. -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Patch update the navigation property sort in storage -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Reapply provides operations to call the reapply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Reapply()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property sort for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the sorting for the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property sort in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3d0339a7baebdc0519e83841a6bac1d6014869f7798a7c0cbea1dd20c2bd3690.go b/storage/3d0339a7baebdc0519e83841a6bac1d6014869f7798a7c0cbea1dd20c2bd3690.go deleted file mode 100644 index 943486fa7f..0000000000 --- a/storage/3d0339a7baebdc0519e83841a6bac1d6014869f7798a7c0cbea1dd20c2bd3690.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse()(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ItemActivityStatable when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() -} diff --git a/storage/3d200c7ca317735344fa7e8e78fed26f79159efe04aae55fe3d92a8134774349.go b/storage/3d200c7ca317735344fa7e8e78fed26f79159efe04aae55fe3d92a8134774349.go deleted file mode 100644 index 8bd7f721d5..0000000000 --- a/storage/3d200c7ca317735344fa7e8e78fed26f79159efe04aae55fe3d92a8134774349.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3e4e053b1b954c57bac8303bb4a5d215b7b6a1f745546fe2e4276d5469a2541a.go b/storage/3e4e053b1b954c57bac8303bb4a5d215b7b6a1f745546fe2e4276d5469a2541a.go deleted file mode 100644 index 8390b93521..0000000000 --- a/storage/3e4e053b1b954c57bac8303bb4a5d215b7b6a1f745546fe2e4276d5469a2541a.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetQueryParameters represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3efbe21b8154d8b158bc2008393b2dfac8f857738a28a0bd5a7aa89018a2902f.go b/storage/3efbe21b8154d8b158bc2008393b2dfac8f857738a28a0bd5a7aa89018a2902f.go deleted file mode 100644 index 56c5f5b694..0000000000 --- a/storage/3efbe21b8154d8b158bc2008393b2dfac8f857738a28a0bd5a7aa89018a2902f.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the column. -// returns a WorkbookRangeable 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/tablecolumn-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/3f8255ba382ccb83218f91589f8e9f889dfa84c66feae4312c4020bd1d8ebc9e.go b/storage/3f8255ba382ccb83218f91589f8e9f889dfa84c66feae4312c4020bd1d8ebc9e.go deleted file mode 100644 index 1ab25d444a..0000000000 --- a/storage/3f8255ba382ccb83218f91589f8e9f889dfa84c66feae4312c4020bd1d8ebc9e.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/4138d347f762d1e5166f199eb0c300723297ad3952c3d9bd69f9ac95892e745e.go b/storage/4138d347f762d1e5166f199eb0c300723297ad3952c3d9bd69f9ac95892e745e.go deleted file mode 100644 index f986eaafad..0000000000 --- a/storage/4138d347f762d1e5166f199eb0c300723297ad3952c3d9bd69f9ac95892e745e.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder provides operations to call the applyDynamicFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyDynamicFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyDynamicFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyDynamicFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/413f8f0327e0bf661107e65fd61cdf8510d87eee8f9055e5e808216aca298d31.go b/storage/413f8f0327e0bf661107e65fd61cdf8510d87eee8f9055e5e808216aca298d31.go deleted file mode 100644 index b9b3491be8..0000000000 --- a/storage/413f8f0327e0bf661107e65fd61cdf8510d87eee8f9055e5e808216aca298d31.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the header row of the column. -// returns a WorkbookRangeable 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/tablecolumn-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the header row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/41c031bdba4d16341ab508ddb38ff79d384884aad5655f7fb7e83d28f15eb85f.go b/storage/41c031bdba4d16341ab508ddb38ff79d384884aad5655f7fb7e83d28f15eb85f.go deleted file mode 100644 index 14173750b7..0000000000 --- a/storage/41c031bdba4d16341ab508ddb38ff79d384884aad5655f7fb7e83d28f15eb85f.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/425c10fb9b4cc522f8461c0f60837c9881346ae0ed3eb37f9d8ce9fb3c109158.go b/storage/425c10fb9b4cc522f8461c0f60837c9881346ae0ed3eb37f9d8ce9fb3c109158.go deleted file mode 100644 index 10adb3e6cc..0000000000 --- a/storage/425c10fb9b4cc522f8461c0f60837c9881346ae0ed3eb37f9d8ce9fb3c109158.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartAreaFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetQueryParameters represents the fill format of an object, which includes background formatting information. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of an object, which includes background formatting information. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of an object, which includes background formatting information. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/44a6dae46d89615f56d1631c9209650e4ec301910568a7615c38d2ba45e2d459.go b/storage/44a6dae46d89615f56d1631c9209650e4ec301910568a7615c38d2ba45e2d459.go deleted file mode 100644 index 3d9b073f58..0000000000 --- a/storage/44a6dae46d89615f56d1631c9209650e4ec301910568a7615c38d2ba45e2d459.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable), nil -} -// Post create new navigation property to rows for storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4593abbd147987f82a41304d6ad03f02641c2c18cf0b8d52ec464b95eaea9b89.go b/storage/4593abbd147987f82a41304d6ad03f02641c2c18cf0b8d52ec464b95eaea9b89.go deleted file mode 100644 index 3135f0c1bc..0000000000 --- a/storage/4593abbd147987f82a41304d6ad03f02641c2c18cf0b8d52ec464b95eaea9b89.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/45ed6b7562264cc79c847cc75df08fd611de6fd457a75822fce105d3a83f1f2b.go b/storage/45ed6b7562264cc79c847cc75df08fd611de6fd457a75822fce105d3a83f1f2b.go deleted file mode 100644 index 8fe5848721..0000000000 --- a/storage/45ed6b7562264cc79c847cc75df08fd611de6fd457a75822fce105d3a83f1f2b.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\items\{listItem-id}\lastModifiedByUser\mailboxSettings -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/46b376082d6254738caef346232357bf76461166f3ee3649e3da5465eb4c9d2c.go b/storage/46b376082d6254738caef346232357bf76461166f3ee3649e3da5465eb4c9d2c.go deleted file mode 100644 index 9938c5991d..0000000000 --- a/storage/46b376082d6254738caef346232357bf76461166f3ee3649e3da5465eb4c9d2c.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/46de17c602402e7f0cf801031637e07efacbd0ac72f0888bf65229d69a1b90ed.go b/storage/46de17c602402e7f0cf801031637e07efacbd0ac72f0888bf65229d69a1b90ed.go deleted file mode 100644 index dd5a3fc302..0000000000 --- a/storage/46de17c602402e7f0cf801031637e07efacbd0ac72f0888bf65229d69a1b90ed.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/47685a0151f52db89807bac3cf5a9909196df1830cab61c3bca257e9a55d0c53.go b/storage/47685a0151f52db89807bac3cf5a9909196df1830cab61c3bca257e9a55d0c53.go deleted file mode 100644 index 1d8c5d9da8..0000000000 --- a/storage/47685a0151f52db89807bac3cf5a9909196df1830cab61c3bca257e9a55d0c53.go +++ /dev/null @@ -1,99 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters), - } - if fittingMode != nil { - m.BaseRequestBuilder.PathParameters["fittingMode"] = *fittingMode - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightWithFittingModeGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseable), nil -} -// GetAsImageWithWidthWithHeightWithFittingModeGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) GetAsImageWithWidthWithHeightWithFittingModeGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/47e7f6957df513402fe93da8e46ef95609858f9741a17b2f295c87366bee23ca.go b/storage/47e7f6957df513402fe93da8e46ef95609858f9741a17b2f295c87366bee23ca.go deleted file mode 100644 index 45635cb7ea..0000000000 --- a/storage/47e7f6957df513402fe93da8e46ef95609858f9741a17b2f295c87366bee23ca.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/47eb4b02d02306cef1968bda79a8f785a35c9e7a2e7e7b39416217b19499b029.go b/storage/47eb4b02d02306cef1968bda79a8f785a35c9e7a2e7e7b39416217b19499b029.go deleted file mode 100644 index f8979cf9d4..0000000000 --- a/storage/47eb4b02d02306cef1968bda79a8f785a35c9e7a2e7e7b39416217b19499b029.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/48c4a315f93254264e1efb5bec54e5bb6899846e6e7070e049ebb0ca4d3abc54.go b/storage/48c4a315f93254264e1efb5bec54e5bb6899846e6e7070e049ebb0ca4d3abc54.go deleted file mode 100644 index 92dc7beffb..0000000000 --- a/storage/48c4a315f93254264e1efb5bec54e5bb6899846e6e7070e049ebb0ca4d3abc54.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/49c96caf92df698f4e9801f453aa5d719fb7b053eb8e4d5241f29da691baaeee.go b/storage/49c96caf92df698f4e9801f453aa5d719fb7b053eb8e4d5241f29da691baaeee.go deleted file mode 100644 index c7159516c0..0000000000 --- a/storage/49c96caf92df698f4e9801f453aa5d719fb7b053eb8e4d5241f29da691baaeee.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableColumnId provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) ByWorkbookTableColumnId(workbookTableColumnId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableColumnId != "" { - urlTplParams["workbookTableColumn%2Did"] = workbookTableColumnId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to columns for storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4a0ad7c91e3bc82225470976aa62d9ee3a13ac3ed41ac3c444b12abe776c62d3.go b/storage/4a0ad7c91e3bc82225470976aa62d9ee3a13ac3ed41ac3c444b12abe776c62d3.go deleted file mode 100644 index 1333180847..0000000000 --- a/storage/4a0ad7c91e3bc82225470976aa62d9ee3a13ac3ed41ac3c444b12abe776c62d3.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder provides operations to call the protect method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection/protect", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderInternal(urlParams, requestAdapter) -} -// Post protect a worksheet. It throws if the worksheet has been protected. -// 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/worksheetprotection-protect?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation protect a worksheet. It throws if the worksheet has been protected. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4a20450f90c7b2884e8ee0963553dfb252b0ddad9ce564927a927762844ecbd4.go b/storage/4a20450f90c7b2884e8ee0963553dfb252b0ddad9ce564927a927762844ecbd4.go deleted file mode 100644 index 603eaad7b2..0000000000 --- a/storage/4a20450f90c7b2884e8ee0963553dfb252b0ddad9ce564927a927762844ecbd4.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4bcf0727912549e7c8e5fc4698e38332f19ca7adcd86af6bb035679d5d030c04.go b/storage/4bcf0727912549e7c8e5fc4698e38332f19ca7adcd86af6bb035679d5d030c04.go deleted file mode 100644 index 6565a46f88..0000000000 --- a/storage/4bcf0727912549e7c8e5fc4698e38332f19ca7adcd86af6bb035679d5d030c04.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\items\{driveItem-id}\lastModifiedByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4c5f07bde0c9673f940a93d446b616528dc8bf01b69518f1a89f5982545dceed.go b/storage/4c5f07bde0c9673f940a93d446b616528dc8bf01b69518f1a89f5982545dceed.go deleted file mode 100644 index 353254c657..0000000000 --- a/storage/4c5f07bde0c9673f940a93d446b616528dc8bf01b69518f1a89f5982545dceed.go +++ /dev/null @@ -1,79 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder provides operations to call the cell method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})", pathParameters), - } - if column != nil { - m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) - } - if row != nil { - m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. -// returns a WorkbookRangeable 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/worksheet-cell?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object containing the single cell based on row and column numbers. The cell can be outside the bounds of its parent range, so long as it's stays within the worksheet grid. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4d0c188c1bffd0f752433ed19b28e285ad4b9f2c9b30eb6a088de9175ed317fc.go b/storage/4d0c188c1bffd0f752433ed19b28e285ad4b9f2c9b30eb6a088de9175ed317fc.go deleted file mode 100644 index da2818b941..0000000000 --- a/storage/4d0c188c1bffd0f752433ed19b28e285ad4b9f2c9b30eb6a088de9175ed317fc.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get retrieve the properties and relationships of range object. -// returns a WorkbookRangeable 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/range-get?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation retrieve the properties and relationships of range object. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4dfdc2181ebf71874866ba42f3fc907eb8c4a1bea0894d54a2696da187101745.go b/storage/4dfdc2181ebf71874866ba42f3fc907eb8c4a1bea0894d54a2696da187101745.go deleted file mode 100644 index db5e2bcd2f..0000000000 --- a/storage/4dfdc2181ebf71874866ba42f3fc907eb8c4a1bea0894d54a2696da187101745.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetQueryParameters represents the formatting of a chart object, which includes line and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4eea6e3340f7c0cc0ebd700519c9ef08a57f72f56b27aa65f7e129cb0f4f46b7.go b/storage/4eea6e3340f7c0cc0ebd700519c9ef08a57f72f56b27aa65f7e129cb0f4f46b7.go deleted file mode 100644 index 15a12c1054..0000000000 --- a/storage/4eea6e3340f7c0cc0ebd700519c9ef08a57f72f56b27aa65f7e129cb0f4f46b7.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/4f1098598161cb0dfab80c5a0240ed41b4377fa5035d149186d7888f42712ea8.go b/storage/4f1098598161cb0dfab80c5a0240ed41b4377fa5035d149186d7888f42712ea8.go deleted file mode 100644 index b7aef36806..0000000000 --- a/storage/4f1098598161cb0dfab80c5a0240ed41b4377fa5035d149186d7888f42712ea8.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder provides operations to call the setData method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/setData", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderInternal(urlParams, requestAdapter) -} -// Post resets the source data for the chart. -// 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/chart-setdata?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation resets the source data for the chart. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4f58fb1ba792bdb785d982c3ac25acb0b43233d8188b4c64205b6410173b8576.go b/storage/4f58fb1ba792bdb785d982c3ac25acb0b43233d8188b4c64205b6410173b8576.go deleted file mode 100644 index 35dd37df58..0000000000 --- a/storage/4f58fb1ba792bdb785d982c3ac25acb0b43233d8188b4c64205b6410173b8576.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the entire column. -// returns a WorkbookRangeable 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/tablecolumn-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the entire column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4f8c6574a5081653e52cc2e454ebce9c7bfe3cfbe494a70263697dac543fe862.go b/storage/4f8c6574a5081653e52cc2e454ebce9c7bfe3cfbe494a70263697dac543fe862.go deleted file mode 100644 index e6d8aeaaf5..0000000000 --- a/storage/4f8c6574a5081653e52cc2e454ebce9c7bfe3cfbe494a70263697dac543fe862.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetQueryParameters represents chart axes. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/axes{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property axes for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart axes. Read-only. -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// Patch update the navigation property axes in storage -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// ToDeleteRequestInformation delete navigation property axes for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart axes. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property axes in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/4ffaf6217524675005b295d7398eaf3cb8d11ae437ce42f1e270991189941887.go b/storage/4ffaf6217524675005b295d7398eaf3cb8d11ae437ce42f1e270991189941887.go deleted file mode 100644 index 5d5a5d7c59..0000000000 --- a/storage/4ffaf6217524675005b295d7398eaf3cb8d11ae437ce42f1e270991189941887.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters returns collection of names that are associated with the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property names for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get returns collection of names that are associated with the worksheet. Read-only. -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// Patch update the navigation property names in storage -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property names for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns collection of names that are associated with the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property names in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/50a82f2a650b556f04f80535da17a906b0fd9d854a3e19f2bdd378a55374e513.go b/storage/50a82f2a650b556f04f80535da17a906b0fd9d854a3e19f2bdd378a55374e513.go deleted file mode 100644 index d456341dd6..0000000000 --- a/storage/50a82f2a650b556f04f80535da17a906b0fd9d854a3e19f2bdd378a55374e513.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder provides operations to call the convertToRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/convertToRange", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post converts the table into a normal range of cells. All data is preserved. -// returns a WorkbookRangeable 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/table-converttorange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToPostRequestInformation converts the table into a normal range of cells. All data is preserved. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5269bac41441d6626548a621b62772e5b95de153ee6b6ccebc477a0e7ba7dfa7.go b/storage/5269bac41441d6626548a621b62772e5b95de153ee6b6ccebc477a0e7ba7dfa7.go deleted file mode 100644 index 49ed311918..0000000000 --- a/storage/5269bac41441d6626548a621b62772e5b95de153ee6b6ccebc477a0e7ba7dfa7.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable), nil -} -// Post create new navigation property to rows for storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/54216df1ca08b315d8cf6cddedd0539a939803f0ab9c8a9891c9558e75dc7efd.go b/storage/54216df1ca08b315d8cf6cddedd0539a939803f0ab9c8a9891c9558e75dc7efd.go deleted file mode 100644 index 208bcb6b76..0000000000 --- a/storage/54216df1ca08b315d8cf6cddedd0539a939803f0ab9c8a9891c9558e75dc7efd.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with header row of the table. -// returns a WorkbookRangeable 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/table-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with header row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5455178a9b208c7ef8867e51661cd61d0f789198616372705796cfca46b2fa61.go b/storage/5455178a9b208c7ef8867e51661cd61d0f789198616372705796cfca46b2fa61.go deleted file mode 100644 index 87e81ff78d..0000000000 --- a/storage/5455178a9b208c7ef8867e51661cd61d0f789198616372705796cfca46b2fa61.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the range object associated with the entire table. -// returns a WorkbookRangeable 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/table-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation get the range object associated with the entire table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5483e92651b5bbafd71a0e10c255383fd037c93141cacdf505685ea297778eb0.go b/storage/5483e92651b5bbafd71a0e10c255383fd037c93141cacdf505685ea297778eb0.go deleted file mode 100644 index 625723ba6f..0000000000 --- a/storage/5483e92651b5bbafd71a0e10c255383fd037c93141cacdf505685ea297778eb0.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/55303ee425bae56ae2fa845cc105d4d344cc30c83dd2c9f4a99345b2e3b2dbad.go b/storage/55303ee425bae56ae2fa845cc105d4d344cc30c83dd2c9f4a99345b2e3b2dbad.go deleted file mode 100644 index 5d12467528..0000000000 --- a/storage/55303ee425bae56ae2fa845cc105d4d344cc30c83dd2c9f4a99345b2e3b2dbad.go +++ /dev/null @@ -1,99 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters), - } - if fittingMode != nil { - m.BaseRequestBuilder.PathParameters["fittingMode"] = *fittingMode - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightWithFittingModeGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseable), nil -} -// GetAsImageWithWidthWithHeightWithFittingModeGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) GetAsImageWithWidthWithHeightWithFittingModeGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/560df404cc22fa5d5aa30bb18a95a73f15d0993ed3b70c4077d665cc626854e3.go b/storage/560df404cc22fa5d5aa30bb18a95a73f15d0993ed3b70c4077d665cc626854e3.go deleted file mode 100644 index 08c04c83e9..0000000000 --- a/storage/560df404cc22fa5d5aa30bb18a95a73f15d0993ed3b70c4077d665cc626854e3.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyFontColorFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/562da4b1be286deae2a206a14ee75fc77aa6550e0853f7bcc8ece011629c38e4.go b/storage/562da4b1be286deae2a206a14ee75fc77aa6550e0853f7bcc8ece011629c38e4.go deleted file mode 100644 index 009173897b..0000000000 --- a/storage/562da4b1be286deae2a206a14ee75fc77aa6550e0853f7bcc8ece011629c38e4.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/564453c3a07b0054bda0cf3dc98203aeb27bfd01fc3c5dda1c97720ea6676b59.go b/storage/564453c3a07b0054bda0cf3dc98203aeb27bfd01fc3c5dda1c97720ea6676b59.go deleted file mode 100644 index 98fe78fb55..0000000000 --- a/storage/564453c3a07b0054bda0cf3dc98203aeb27bfd01fc3c5dda1c97720ea6676b59.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/56bf52cd84bcda8f831ad8016ef0fce75dbe48bfb6aaa4bf89acbd488248f6a5.go b/storage/56bf52cd84bcda8f831ad8016ef0fce75dbe48bfb6aaa4bf89acbd488248f6a5.go deleted file mode 100644 index 594d032787..0000000000 --- a/storage/56bf52cd84bcda8f831ad8016ef0fce75dbe48bfb6aaa4bf89acbd488248f6a5.go +++ /dev/null @@ -1,93 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width})", pathParameters), - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseable), nil -} -// GetAsImageWithWidthGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) GetAsImageWithWidthGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5746523e69d4704dad6a24e9ebe0bf7fdb181ea94d87147970e3f071bae4c23a.go b/storage/5746523e69d4704dad6a24e9ebe0bf7fdb181ea94d87147970e3f071bae4c23a.go deleted file mode 100644 index 90f547e7a1..0000000000 --- a/storage/5746523e69d4704dad6a24e9ebe0bf7fdb181ea94d87147970e3f071bae4c23a.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetCriteria()(*string) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetCriteria(value *string)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value *string)() -} diff --git a/storage/57d08a052fc8773b762bbfcfec9c979f8d27f3f0234c9e74b46b641517ec380b.go b/storage/57d08a052fc8773b762bbfcfec9c979f8d27f3f0234c9e74b46b641517ec380b.go deleted file mode 100644 index 44b4d6cecc..0000000000 --- a/storage/57d08a052fc8773b762bbfcfec9c979f8d27f3f0234c9e74b46b641517ec380b.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseable), nil -} -// GetAsImageGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) GetAsImageGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5902afaf0ed0463e1d594f2936dc2b879b14879a9bdca707a01890620a52e0f6.go b/storage/5902afaf0ed0463e1d594f2936dc2b879b14879a9bdca707a01890620a52e0f6.go deleted file mode 100644 index a7691300c5..0000000000 --- a/storage/5902afaf0ed0463e1d594f2936dc2b879b14879a9bdca707a01890620a52e0f6.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/5a7ab0d23b4d3bd9480dfa591e3cecdffc2a3dbdc8f7e14665e4563f71fae04c.go b/storage/5a7ab0d23b4d3bd9480dfa591e3cecdffc2a3dbdc8f7e14665e4563f71fae04c.go deleted file mode 100644 index ea5fdc61b3..0000000000 --- a/storage/5a7ab0d23b4d3bd9480dfa591e3cecdffc2a3dbdc8f7e14665e4563f71fae04c.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5ac3f45240d88c668983bff57e32bdd04a901157f176e3bc4a95803b4ad1ff79.go b/storage/5ac3f45240d88c668983bff57e32bdd04a901157f176e3bc4a95803b4ad1ff79.go deleted file mode 100644 index b3ffad8aff..0000000000 --- a/storage/5ac3f45240d88c668983bff57e32bdd04a901157f176e3bc4a95803b4ad1ff79.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/5c2cb64ddb9e2eb011f92c6f7d4914bbf9fd76f3a77e7c2817102cfc599b4b09.go b/storage/5c2cb64ddb9e2eb011f92c6f7d4914bbf9fd76f3a77e7c2817102cfc599b4b09.go deleted file mode 100644 index 2cee2774ef..0000000000 --- a/storage/5c2cb64ddb9e2eb011f92c6f7d4914bbf9fd76f3a77e7c2817102cfc599b4b09.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the table. -// returns a WorkbookRangeable 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/table-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5cd7bfdd6ad836747ab4d804702b99e0a71b5b822ccb32b1c4f03a29a2a0a3bc.go b/storage/5cd7bfdd6ad836747ab4d804702b99e0a71b5b822ccb32b1c4f03a29a2a0a3bc.go deleted file mode 100644 index 790b3b3702..0000000000 --- a/storage/5cd7bfdd6ad836747ab4d804702b99e0a71b5b822ccb32b1c4f03a29a2a0a3bc.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})", pathParameters), - } - if valuesOnly != nil { - m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function usedRange -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function usedRange -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5d2fa629466680fde36a72afdd51bf53441898264e8fab134db7e9c515f5a4a0.go b/storage/5d2fa629466680fde36a72afdd51bf53441898264e8fab134db7e9c515f5a4a0.go deleted file mode 100644 index f640ae168f..0000000000 --- a/storage/5d2fa629466680fde36a72afdd51bf53441898264e8fab134db7e9c515f5a4a0.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/5e1b34dfd2e2939ca304358bbeb233156a2a33b4015fee057fe374e941b59cda.go b/storage/5e1b34dfd2e2939ca304358bbeb233156a2a33b4015fee057fe374e941b59cda.go deleted file mode 100644 index b273ca0b30..0000000000 --- a/storage/5e1b34dfd2e2939ca304358bbeb233156a2a33b4015fee057fe374e941b59cda.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/5e703549cf56402c0a47c2387ff58b2d193ec60d49925e9b8f2097593f1a73e4.go b/storage/5e703549cf56402c0a47c2387ff58b2d193ec60d49925e9b8f2097593f1a73e4.go deleted file mode 100644 index 4995066c6c..0000000000 --- a/storage/5e703549cf56402c0a47c2387ff58b2d193ec60d49925e9b8f2097593f1a73e4.go +++ /dev/null @@ -1,137 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder provides operations to call the item method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Axes provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Axes()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameAxesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, name *string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')", pathParameters), - } - if name != nil { - m.BaseRequestBuilder.PathParameters["name"] = *name - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// DataLabels provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) DataLabels()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get invoke function item -// returns a WorkbookChartable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// Image provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Image()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImageWithWidth provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) ImageWithWidth(width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, width) -} -// ImageWithWidthWithHeight provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) ImageWithWidthWithHeight(height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, height, width) -} -// ImageWithWidthWithHeightWithFittingMode provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) ImageWithWidthWithHeightWithFittingMode(fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, fittingMode, height, width) -} -// Legend provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Legend()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameLegendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Series provides operations to manage the series property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Series()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetData provides operations to call the setData method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) SetData()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetPosition provides operations to call the setPosition method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) SetPosition()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation invoke function item -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/5f2daf03f8e02776d7b96fa7aadd3ad9061d0be2f8b82bae7a154647b19583cc.go b/storage/5f2daf03f8e02776d7b96fa7aadd3ad9061d0be2f8b82bae7a154647b19583cc.go deleted file mode 100644 index ea81921e35..0000000000 --- a/storage/5f2daf03f8e02776d7b96fa7aadd3ad9061d0be2f8b82bae7a154647b19583cc.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder provides operations to manage the series property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetQueryParameters represents either a single series or collection of series in the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property series for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents either a single series or collection of series in the chart. Read-only. -// returns a WorkbookChartSeriesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// Patch update the navigation property series in storage -// returns a WorkbookChartSeriesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// Points provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) Points()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property series for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents either a single series or collection of series in the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property series in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesWorkbookChartSeriesItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6001c890128286458c359ecf633e76ee4a71158900a79e3499646ce7705865ee.go b/storage/6001c890128286458c359ecf633e76ee4a71158900a79e3499646ce7705865ee.go deleted file mode 100644 index 50b575b0d0..0000000000 --- a/storage/6001c890128286458c359ecf633e76ee4a71158900a79e3499646ce7705865ee.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCount gets the count property value. The count property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetCount()(*int32) { - val, err := m.GetBackingStore().Get("count") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetCount(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("count", m.GetCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCount sets the count property value. The count property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBody) SetCount(value *int32)() { - err := m.GetBackingStore().Set("count", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCount()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCount(value *int32)() -} diff --git a/storage/6077fff879a865d5d24f2bde8fa6555c6e4fea4f08862165f3f51af379cb1cac.go b/storage/6077fff879a865d5d24f2bde8fa6555c6e4fea4f08862165f3f51af379cb1cac.go deleted file mode 100644 index db7021b3ec..0000000000 --- a/storage/6077fff879a865d5d24f2bde8fa6555c6e4fea4f08862165f3f51af379cb1cac.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/60e14d819fa2cc9921e9ae2160ee189e8a5b49f0fa8365074d0b9089fe69b7ff.go b/storage/60e14d819fa2cc9921e9ae2160ee189e8a5b49f0fa8365074d0b9089fe69b7ff.go deleted file mode 100644 index 2526a980d4..0000000000 --- a/storage/60e14d819fa2cc9921e9ae2160ee189e8a5b49f0fa8365074d0b9089fe69b7ff.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder provides operations to call the applyCellColorFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyCellColorFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyCellColorFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/614f3aeab0204020149e6cd1cacc1e711823c39ebbe8b283dfb0d3a9bb22b52a.go b/storage/614f3aeab0204020149e6cd1cacc1e711823c39ebbe8b283dfb0d3a9bb22b52a.go deleted file mode 100644 index dedd5c6baa..0000000000 --- a/storage/614f3aeab0204020149e6cd1cacc1e711823c39ebbe8b283dfb0d3a9bb22b52a.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder provides operations to call the applyBottomPercentFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomPercentFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyBottomPercentFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyBottomPercentFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/618a72b98dec3182a1cfc22a3d82e7b6cd845483044e7e9669f584999ee25455.go b/storage/618a72b98dec3182a1cfc22a3d82e7b6cd845483044e7e9669f584999ee25455.go deleted file mode 100644 index b4b49cdf09..0000000000 --- a/storage/618a72b98dec3182a1cfc22a3d82e7b6cd845483044e7e9669f584999ee25455.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder provides operations to call the sessionInfoResource method. -type FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, key *string)(*FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/sessionInfoResource(key='{key}')", pathParameters), - } - if key != nil { - m.BaseRequestBuilder.PathParameters["key"] = *key - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function sessionInfoResource -// returns a WorkbookSessionInfoable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSessionInfoable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookSessionInfoFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSessionInfoable), nil -} -// ToGetRequestInformation invoke function sessionInfoResource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/62c9d884b766328d0765bca29b16ccfb2f60f63453bff3d302af6a431858fd75.go b/storage/62c9d884b766328d0765bca29b16ccfb2f60f63453bff3d302af6a431858fd75.go deleted file mode 100644 index 105463e282..0000000000 --- a/storage/62c9d884b766328d0765bca29b16ccfb2f60f63453bff3d302af6a431858fd75.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property points for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all points in the series. Read-only. -// returns a WorkbookChartPointable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable), nil -} -// Patch update the navigation property points in storage -// returns a WorkbookChartPointable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable), nil -} -// ToDeleteRequestInformation delete navigation property points for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of all points in the series. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property points in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/63875160626b951272853128f4d8a2d6d67246f207c4d3dcabadd45e492751a8.go b/storage/63875160626b951272853128f4d8a2d6d67246f207c4d3dcabadd45e492751a8.go deleted file mode 100644 index 7e01589082..0000000000 --- a/storage/63875160626b951272853128f4d8a2d6d67246f207c4d3dcabadd45e492751a8.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/63a440eb33794e1a3d1c40b8094d6f1a4fafc27471a98263903b1884a082d9ed.go b/storage/63a440eb33794e1a3d1c40b8094d6f1a4fafc27471a98263903b1884a082d9ed.go deleted file mode 100644 index ae99d83da8..0000000000 --- a/storage/63a440eb33794e1a3d1c40b8094d6f1a4fafc27471a98263903b1884a082d9ed.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetQueryParameters exposes the itemActivities represented in this itemActivityStat resource. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByItemActivityId provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) ByItemActivityId(itemActivityId string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if itemActivityId != "" { - urlTplParams["itemActivity%2Did"] = itemActivityId - } - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemActivityItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get exposes the itemActivities represented in this itemActivityStat resource. -// returns a ItemActivityCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityCollectionResponseable), nil -} -// Post create new navigation property to activities for storage -// returns a ItemActivityable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable), nil -} -// ToGetRequestInformation exposes the itemActivities represented in this itemActivityStat resource. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to activities for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/643059cf45ce878f13af695c2e844056cddfa276cbc01993b9559feb389d8a04.go b/storage/643059cf45ce878f13af695c2e844056cddfa276cbc01993b9559feb389d8a04.go deleted file mode 100644 index 9e2a6c60b1..0000000000 --- a/storage/643059cf45ce878f13af695c2e844056cddfa276cbc01993b9559feb389d8a04.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the filter on the given column. -// 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/filter-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the filter on the given column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/64ed27258ee2e4bd06f0eaf2485d75e96dcc64aef39ae97c9863476d76604839.go b/storage/64ed27258ee2e4bd06f0eaf2485d75e96dcc64aef39ae97c9863476d76604839.go deleted file mode 100644 index 58bb5fab43..0000000000 --- a/storage/64ed27258ee2e4bd06f0eaf2485d75e96dcc64aef39ae97c9863476d76604839.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/652583135d40398ebbeb428d96be41304748d0433852bebabdd4e74f8d344336.go b/storage/652583135d40398ebbeb428d96be41304748d0433852bebabdd4e74f8d344336.go deleted file mode 100644 index 9169c5dd29..0000000000 --- a/storage/652583135d40398ebbeb428d96be41304748d0433852bebabdd4e74f8d344336.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetQueryParameters returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property minorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property minorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property minorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property minorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6571ee388090ec3f0740cc660573439dbd00a041bd8b27d8af2a71e42f540d78.go b/storage/6571ee388090ec3f0740cc660573439dbd00a041bd8b27d8af2a71e42f540d78.go deleted file mode 100644 index 18b2178836..0000000000 --- a/storage/6571ee388090ec3f0740cc660573439dbd00a041bd8b27d8af2a71e42f540d78.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder provides operations to call the applyIconFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyIconFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyIconFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6727d415afbff6abbeb7fbf374568e8e25ddf7612b572f302d2f6cec102744ea.go b/storage/6727d415afbff6abbeb7fbf374568e8e25ddf7612b572f302d2f6cec102744ea.go deleted file mode 100644 index a258c69be6..0000000000 --- a/storage/6727d415afbff6abbeb7fbf374568e8e25ddf7612b572f302d2f6cec102744ea.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/685a7cc7a4e9e70f63dc5e7186f46b5ee3986fc1d8beec7debd6b2b417f44681.go b/storage/685a7cc7a4e9e70f63dc5e7186f46b5ee3986fc1d8beec7debd6b2b417f44681.go deleted file mode 100644 index e5c4342e7d..0000000000 --- a/storage/685a7cc7a4e9e70f63dc5e7186f46b5ee3986fc1d8beec7debd6b2b417f44681.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse()(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ItemActivityStatable when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() -} diff --git a/storage/68aff1b8c47663359cd455f92cedf0c02bdabaf9b65743dc6f7dd5797e62c9c0.go b/storage/68aff1b8c47663359cd455f92cedf0c02bdabaf9b65743dc6f7dd5797e62c9c0.go deleted file mode 100644 index ec8223b5f3..0000000000 --- a/storage/68aff1b8c47663359cd455f92cedf0c02bdabaf9b65743dc6f7dd5797e62c9c0.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartTitleFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetQueryParameters represents the fill format of an object, which includes background formatting information. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of an object, which includes background formatting information. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of an object, which includes background formatting information. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/693b2fb18b1484fd235b9f60aa3ed40591b369a4c6b4876e90a9d893a64e60dd.go b/storage/693b2fb18b1484fd235b9f60aa3ed40591b369a4c6b4876e90a9d893a64e60dd.go deleted file mode 100644 index 07ea70bb1c..0000000000 --- a/storage/693b2fb18b1484fd235b9f60aa3ed40591b369a4c6b4876e90a9d893a64e60dd.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder provides operations to call the applyTopPercentFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyTopPercentFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyTopPercentFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6aa3fe365652ee8bdd2eef0d1cda731eec0e9f26279ba082bcb487dd374e288c.go b/storage/6aa3fe365652ee8bdd2eef0d1cda731eec0e9f26279ba082bcb487dd374e288c.go deleted file mode 100644 index e6b2412cdd..0000000000 --- a/storage/6aa3fe365652ee8bdd2eef0d1cda731eec0e9f26279ba082bcb487dd374e288c.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetQueryParameters version information for a document set version created by a user. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property documentSetVersions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fields provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) Fields()(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get version information for a document set version created by a user. -// returns a DocumentSetVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDocumentSetVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable), nil -} -// Patch update the navigation property documentSetVersions in storage -// returns a DocumentSetVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDocumentSetVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable), nil -} -// Restore provides operations to call the restore method. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) Restore()(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property documentSetVersions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation version information for a document set version created by a user. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property documentSetVersions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6ccac29fffdbb7c859a59b1cd0da06223d7552a53cd633375f1a080a09db9fb5.go b/storage/6ccac29fffdbb7c859a59b1cd0da06223d7552a53cd633375f1a080a09db9fb5.go deleted file mode 100644 index dd16c3f6fe..0000000000 --- a/storage/6ccac29fffdbb7c859a59b1cd0da06223d7552a53cd633375f1a080a09db9fb5.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the header row of the column. -// returns a WorkbookRangeable 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/tablecolumn-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the header row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6d3fb6e6a0ba069325e734b7c60cfb189218dbf1f80c06ca6a93d8fefcb1d99d.go b/storage/6d3fb6e6a0ba069325e734b7c60cfb189218dbf1f80c06ca6a93d8fefcb1d99d.go deleted file mode 100644 index 7b43cba80a..0000000000 --- a/storage/6d3fb6e6a0ba069325e734b7c60cfb189218dbf1f80c06ca6a93d8fefcb1d99d.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with header row of the table. -// returns a WorkbookRangeable 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/table-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with header row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/6ef134d43d72a7ad8aec7d057c0856a2acfd703fed3d63614243922ccb8a34e7.go b/storage/6ef134d43d72a7ad8aec7d057c0856a2acfd703fed3d63614243922ccb8a34e7.go deleted file mode 100644 index 50cc649607..0000000000 --- a/storage/6ef134d43d72a7ad8aec7d057c0856a2acfd703fed3d63614243922ccb8a34e7.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCount gets the count property value. The count property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetCount()(*int32) { - val, err := m.GetBackingStore().Get("count") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["count"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetCount(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("count", m.GetCount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCount sets the count property value. The count property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBody) SetCount(value *int32)() { - err := m.GetBackingStore().Set("count", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCount()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCount(value *int32)() -} diff --git a/storage/6f57d9750c1bf44bcd2fe22190e334beef889b3c55c83aab8879a48b1f474bd1.go b/storage/6f57d9750c1bf44bcd2fe22190e334beef889b3c55c83aab8879a48b1f474bd1.go deleted file mode 100644 index 70736ea953..0000000000 --- a/storage/6f57d9750c1bf44bcd2fe22190e334beef889b3c55c83aab8879a48b1f474bd1.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the header row of the column. -// returns a WorkbookRangeable 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/tablecolumn-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the header row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7013545ec0cfb2a1df57b08c57ff828a87609fc8b27a9e5dca114616fd8c4d18.go b/storage/7013545ec0cfb2a1df57b08c57ff828a87609fc8b27a9e5dca114616fd8c4d18.go deleted file mode 100644 index e48b9015a5..0000000000 --- a/storage/7013545ec0cfb2a1df57b08c57ff828a87609fc8b27a9e5dca114616fd8c4d18.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetQueryParameters represents the formatting of chart axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of chart axis title. Read-only. -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7043935cb99a27ba924aea6bbe48b8f8d2547c6a2b575600f326829f7dbfed26.go b/storage/7043935cb99a27ba924aea6bbe48b8f8d2547c6a2b575600f326829f7dbfed26.go deleted file mode 100644 index 9be436fb6c..0000000000 --- a/storage/7043935cb99a27ba924aea6bbe48b8f8d2547c6a2b575600f326829f7dbfed26.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/70b05ade7a7e04583e5de2e9f9214bd9db604ad90a2a7dcd38ab551a30e22b88.go b/storage/70b05ade7a7e04583e5de2e9f9214bd9db604ad90a2a7dcd38ab551a30e22b88.go deleted file mode 100644 index e2caf061df..0000000000 --- a/storage/70b05ade7a7e04583e5de2e9f9214bd9db604ad90a2a7dcd38ab551a30e22b88.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetQueryParameters returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property minorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property minorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property minorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property minorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/70fb921522bac356aa2665a1880ec5273266cfd422e96eaffb071f16064640af.go b/storage/70fb921522bac356aa2665a1880ec5273266cfd422e96eaffb071f16064640af.go deleted file mode 100644 index c9dece2422..0000000000 --- a/storage/70fb921522bac356aa2665a1880ec5273266cfd422e96eaffb071f16064640af.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/710e1e70f1f30af897cb605a7739d89aae559107516c2656d51b6effec11a16e.go b/storage/710e1e70f1f30af897cb605a7739d89aae559107516c2656d51b6effec11a16e.go deleted file mode 100644 index 437d035dee..0000000000 --- a/storage/710e1e70f1f30af897cb605a7739d89aae559107516c2656d51b6effec11a16e.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetQueryParameters the worksheet containing the current table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current table. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/71112be04dac9a1e185b3f13b4bba6f6c86da311dc2f06c3daa5be2b23fb56bc.go b/storage/71112be04dac9a1e185b3f13b4bba6f6c86da311dc2f06c3daa5be2b23fb56bc.go deleted file mode 100644 index bb057928fe..0000000000 --- a/storage/71112be04dac9a1e185b3f13b4bba6f6c86da311dc2f06c3daa5be2b23fb56bc.go +++ /dev/null @@ -1,200 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fields"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookSortFieldFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - } - } - m.SetFields(res) - } - return nil - } - res["matchCase"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetMatchCase(val) - } - return nil - } - res["method"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMethod(val) - } - return nil - } - return res -} -// GetFields gets the fields property value. The fields property -// returns a []WorkbookSortFieldable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetFields()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) { - val, err := m.GetBackingStore().Get("fields") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - } - return nil -} -// GetMatchCase gets the matchCase property value. The matchCase property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetMatchCase()(*bool) { - val, err := m.GetBackingStore().Get("matchCase") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetMethod gets the method property value. The method property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) GetMethod()(*string) { - val, err := m.GetBackingStore().Get("method") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetFields() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFields())) - for i, v := range m.GetFields() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("fields", cast) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("matchCase", m.GetMatchCase()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("method", m.GetMethod()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFields sets the fields property value. The fields property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) SetFields(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable)() { - err := m.GetBackingStore().Set("fields", value) - if err != nil { - panic(err) - } -} -// SetMatchCase sets the matchCase property value. The matchCase property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) SetMatchCase(value *bool)() { - err := m.GetBackingStore().Set("matchCase", value) - if err != nil { - panic(err) - } -} -// SetMethod sets the method property value. The method property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBody) SetMethod(value *string)() { - err := m.GetBackingStore().Set("method", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFields()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - GetMatchCase()(*bool) - GetMethod()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFields(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable)() - SetMatchCase(value *bool)() - SetMethod(value *string)() -} diff --git a/storage/72247fefb7ceb33cdd8138af8b49078d21d581d5472f44f222fb8cb805259cb4.go b/storage/72247fefb7ceb33cdd8138af8b49078d21d581d5472f44f222fb8cb805259cb4.go deleted file mode 100644 index d694c8e25a..0000000000 --- a/storage/72247fefb7ceb33cdd8138af8b49078d21d581d5472f44f222fb8cb805259cb4.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters collection of PivotTables that are part of the worksheet. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property pivotTables for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get collection of PivotTables that are part of the worksheet. -// returns a WorkbookPivotTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookPivotTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable), nil -} -// Patch update the navigation property pivotTables in storage -// returns a WorkbookPivotTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookPivotTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable), nil -} -// Refresh provides operations to call the refresh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Refresh()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property pivotTables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation collection of PivotTables that are part of the worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property pivotTables in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookPivotTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/72c1b34732b7ef6f656a1f2aa7d4c04e1801d0d324b0b8cdcc363fd4a2a8d09a.go b/storage/72c1b34732b7ef6f656a1f2aa7d4c04e1801d0d324b0b8cdcc363fd4a2a8d09a.go deleted file mode 100644 index feaf0402c6..0000000000 --- a/storage/72c1b34732b7ef6f656a1f2aa7d4c04e1801d0d324b0b8cdcc363fd4a2a8d09a.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/7335e86a7bdcd26d13b12f1e840f564d04f4221f7bee2052176caa5e7309b3e6.go b/storage/7335e86a7bdcd26d13b12f1e840f564d04f4221f7bee2052176caa5e7309b3e6.go deleted file mode 100644 index 7eebd4904f..0000000000 --- a/storage/7335e86a7bdcd26d13b12f1e840f564d04f4221f7bee2052176caa5e7309b3e6.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder provides operations to call the applyIconFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyIconFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyIconFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyIconFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/747c40120653ad015a65b683383cd51739301c706361ecdacac4bfa679724bb1.go b/storage/747c40120653ad015a65b683383cd51739301c706361ecdacac4bfa679724bb1.go deleted file mode 100644 index 325fcc0b17..0000000000 --- a/storage/747c40120653ad015a65b683383cd51739301c706361ecdacac4bfa679724bb1.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["percent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetPercent(val) - } - return nil - } - return res -} -// GetPercent gets the percent property value. The percent property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) GetPercent()(*int32) { - val, err := m.GetBackingStore().Get("percent") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("percent", m.GetPercent()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPercent sets the percent property value. The percent property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBody) SetPercent(value *int32)() { - err := m.GetBackingStore().Set("percent", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPercent()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPercent(value *int32)() -} diff --git a/storage/74993e96a9962f41df76c73396c86503174a1918d3ebd55fe0288ba626958716.go b/storage/74993e96a9962f41df76c73396c86503174a1918d3ebd55fe0288ba626958716.go deleted file mode 100644 index 7c910993d4..0000000000 --- a/storage/74993e96a9962f41df76c73396c86503174a1918d3ebd55fe0288ba626958716.go +++ /dev/null @@ -1,122 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder provides operations to call the getActivitiesByInterval method. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters invoke function getActivitiesByInterval -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *string, interval *string, startDateTime *string)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if endDateTime != nil { - m.BaseRequestBuilder.PathParameters["endDateTime"] = *endDateTime - } - if interval != nil { - m.BaseRequestBuilder.PathParameters["interval"] = *interval - } - if startDateTime != nil { - m.BaseRequestBuilder.PathParameters["startDateTime"] = *startDateTime - } - return m -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) -} -// Get invoke function getActivitiesByInterval -// Deprecated: This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable), nil -} -// GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse invoke function getActivitiesByInterval -// returns a FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable), nil -} -// ToGetRequestInformation invoke function getActivitiesByInterval -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/74dea7c62bbd5df558e0618ae542925d5a96815ee2d5edc36f7322737a08f36a.go b/storage/74dea7c62bbd5df558e0618ae542925d5a96815ee2d5edc36f7322737a08f36a.go deleted file mode 100644 index 2fda51fc62..0000000000 --- a/storage/74dea7c62bbd5df558e0618ae542925d5a96815ee2d5edc36f7322737a08f36a.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the column. -// returns a WorkbookRangeable 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/tablecolumn-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/75027b7c7c79d649038183fbd79ea127d1ea35e102167252885ff2cbbf517983.go b/storage/75027b7c7c79d649038183fbd79ea127d1ea35e102167252885ff2cbbf517983.go deleted file mode 100644 index 1ccef8e661..0000000000 --- a/storage/75027b7c7c79d649038183fbd79ea127d1ea35e102167252885ff2cbbf517983.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters encapsulates the format properties chart point. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get encapsulates the format properties chart point. Read-only. -// returns a WorkbookChartPointFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartPointFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation encapsulates the format properties chart point. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/751706f64b12e41ac4e884b92eecd7e6b62e9135448ea2f357f3d66e709da71f.go b/storage/751706f64b12e41ac4e884b92eecd7e6b62e9135448ea2f357f3d66e709da71f.go deleted file mode 100644 index 1fdee0cdcd..0000000000 --- a/storage/751706f64b12e41ac4e884b92eecd7e6b62e9135448ea2f357f3d66e709da71f.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder provides operations to call the reapply method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/reapply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies the current sorting parameters to the table. -// 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/tablesort-reapply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies the current sorting parameters to the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortReapplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/756a1a494a0cbb18f187a3fac20c1a4b143144470aff9bd2620fc865f09fa607.go b/storage/756a1a494a0cbb18f187a3fac20c1a4b143144470aff9bd2620fc865f09fa607.go deleted file mode 100644 index 44e3f68306..0000000000 --- a/storage/756a1a494a0cbb18f187a3fac20c1a4b143144470aff9bd2620fc865f09fa607.go +++ /dev/null @@ -1,101 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Filter provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) Filter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get gets a column based on its position in the collection. -// returns a WorkbookTableColumnable 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/tablecolumncollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation gets a column based on its position in the collection. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7740d6191c71b0d9e8c00d81763dba200a9f6b3283ed7b7a3d2cc8861fdce02a.go b/storage/7740d6191c71b0d9e8c00d81763dba200a9f6b3283ed7b7a3d2cc8861fdce02a.go deleted file mode 100644 index 09bdce29fe..0000000000 --- a/storage/7740d6191c71b0d9e8c00d81763dba200a9f6b3283ed7b7a3d2cc8861fdce02a.go +++ /dev/null @@ -1,212 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters collection of tables that are part of the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ClearFilters provides operations to call the clearFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ClearFilters()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemClearFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Columns()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderInternal(urlParams, requestAdapter) -} -// ConvertToRange provides operations to call the convertToRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ConvertToRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemConvertToRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property tables for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get collection of tables that are part of the worksheet. Read-only. -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property tables in storage -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ReapplyFilters provides operations to call the reapplyFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ReapplyFilters()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemReapplyFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rows provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Rows()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sort provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Sort()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property tables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation collection of tables that are part of the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property tables in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/77657878e4655665fc11ff91a1beec72242780a2876f60d11fbf565631bc4b16.go b/storage/77657878e4655665fc11ff91a1beec72242780a2876f60d11fbf565631bc4b16.go deleted file mode 100644 index 1ecc61cdd4..0000000000 --- a/storage/77657878e4655665fc11ff91a1beec72242780a2876f60d11fbf565631bc4b16.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with totals row of the table. -// returns a WorkbookRangeable 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/table-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with totals row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7789846de31c46383d1627beebb9225f4a48b9a04d3fa85f4e4645ecbfdb89c9.go b/storage/7789846de31c46383d1627beebb9225f4a48b9a04d3fa85f4e4645ecbfdb89c9.go deleted file mode 100644 index 9de4342457..0000000000 --- a/storage/7789846de31c46383d1627beebb9225f4a48b9a04d3fa85f4e4645ecbfdb89c9.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder provides operations to manage the series property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetQueryParameters represents either a single series or collection of series in the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/series{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents either a single series or collection of series in the chart. Read-only. -// returns a WorkbookChartSeriesCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesCollectionResponseable), nil -} -// Post create new navigation property to series for storage -// returns a WorkbookChartSeriesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// ToGetRequestInformation represents either a single series or collection of series in the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to series for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSeriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/779722c4b31c3b0a0a4c73d9851cb595e8ab73313ad054c02e907c804975c642.go b/storage/779722c4b31c3b0a0a4c73d9851cb595e8ab73313ad054c02e907c804975c642.go deleted file mode 100644 index fcdff0fa57..0000000000 --- a/storage/779722c4b31c3b0a0a4c73d9851cb595e8ab73313ad054c02e907c804975c642.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder provides operations to manage the names property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property names for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// Patch update the navigation property names in storage -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property names for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property names in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/7933162fc5f75405bd816bbea36dabdf64987b75bc187180e33a12160077299c.go b/storage/7933162fc5f75405bd816bbea36dabdf64987b75bc187180e33a12160077299c.go deleted file mode 100644 index 08c2f23369..0000000000 --- a/storage/7933162fc5f75405bd816bbea36dabdf64987b75bc187180e33a12160077299c.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/796b9e92219cce31fef75a1d8f7e0fb6113065b22c1a281d4d633f814859965e.go b/storage/796b9e92219cce31fef75a1d8f7e0fb6113065b22c1a281d4d633f814859965e.go deleted file mode 100644 index c2a3e3ac24..0000000000 --- a/storage/796b9e92219cce31fef75a1d8f7e0fb6113065b22c1a281d4d633f814859965e.go +++ /dev/null @@ -1,182 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(urlParams, requestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property columns for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Filter provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Filter()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property columns in storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property columns in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/79fbc983dcaf70c7a2298e68d37817c5da51627ba170398f2140dad7880f8bfb.go b/storage/79fbc983dcaf70c7a2298e68d37817c5da51627ba170398f2140dad7880f8bfb.go deleted file mode 100644 index ecafee27c4..0000000000 --- a/storage/79fbc983dcaf70c7a2298e68d37817c5da51627ba170398f2140dad7880f8bfb.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder provides operations to call the reapplyFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/reapplyFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies all the filters currently on the table. -// 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/table-reapplyfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies all the filters currently on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7a7001b2de508d5a612013a3132d67e35a990a3f7bdae72cbb62f6115ab15257.go b/storage/7a7001b2de508d5a612013a3132d67e35a990a3f7bdae72cbb62f6115ab15257.go deleted file mode 100644 index b68fb6a729..0000000000 --- a/storage/7a7001b2de508d5a612013a3132d67e35a990a3f7bdae72cbb62f6115ab15257.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get retrieves a series based on its position in the collection -// returns a WorkbookChartSeriesable 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/chartseriescollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesable), nil -} -// Points provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) Points()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation retrieves a series based on its position in the collection -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7a9b007db46381c4364dff50dffe036a504203515e41b8d2a320f9fbf07e0850.go b/storage/7a9b007db46381c4364dff50dffe036a504203515e41b8d2a320f9fbf07e0850.go deleted file mode 100644 index c6b115959c..0000000000 --- a/storage/7a9b007db46381c4364dff50dffe036a504203515e41b8d2a320f9fbf07e0850.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of column definitions for this content type. -type FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property columns for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the collection of column definitions for this content type. -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// Patch update the navigation property columns in storage -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// SourceColumn provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the collection of column definitions for this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property columns in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7af5ea1af9ec38391731630b264866c2a8b6bc5cd9c3811fe27158e2359e2186.go b/storage/7af5ea1af9ec38391731630b264866c2a8b6bc5cd9c3811fe27158e2359e2186.go deleted file mode 100644 index 250900688b..0000000000 --- a/storage/7af5ea1af9ec38391731630b264866c2a8b6bc5cd9c3811fe27158e2359e2186.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder provides operations to call the applyTopItemsFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyTopItemsFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyTopItemsFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7b2ca0d5f28dbda993d2ef2c0e177854f5ef5f967df42c7b464dd826e6fc0069.go b/storage/7b2ca0d5f28dbda993d2ef2c0e177854f5ef5f967df42c7b464dd826e6fc0069.go deleted file mode 100644 index c819ec2e3f..0000000000 --- a/storage/7b2ca0d5f28dbda993d2ef2c0e177854f5ef5f967df42c7b464dd826e6fc0069.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder provides operations to call the convertToRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/convertToRange", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post converts the table into a normal range of cells. All data is preserved. -// returns a WorkbookRangeable 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/table-converttorange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToPostRequestInformation converts the table into a normal range of cells. All data is preserved. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7c0e24a5c59bc107a01c9040ec17dd5ce10d16a159a6ab516aadfe27b4f472ea.go b/storage/7c0e24a5c59bc107a01c9040ec17dd5ce10d16a159a6ab516aadfe27b4f472ea.go deleted file mode 100644 index 01eb5f873d..0000000000 --- a/storage/7c0e24a5c59bc107a01c9040ec17dd5ce10d16a159a6ab516aadfe27b4f472ea.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7c1dd43d22e4b6ac12c1412323a638b4cc3e8d69cd93cd852a79a3bd69328bcb.go b/storage/7c1dd43d22e4b6ac12c1412323a638b4cc3e8d69cd93cd852a79a3bd69328bcb.go deleted file mode 100644 index 2dbe682fa5..0000000000 --- a/storage/7c1dd43d22e4b6ac12c1412323a638b4cc3e8d69cd93cd852a79a3bd69328bcb.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder provides operations to call the applyTopItemsFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopItemsFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyTopItemsFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyTopItemsFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7d30bc662f5ede1af95708d2ecfca046156dc4a1d3d21fdbd9efc1e8d2680976.go b/storage/7d30bc662f5ede1af95708d2ecfca046156dc4a1d3d21fdbd9efc1e8d2680976.go deleted file mode 100644 index f390d09c8d..0000000000 --- a/storage/7d30bc662f5ede1af95708d2ecfca046156dc4a1d3d21fdbd9efc1e8d2680976.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndCell gets the endCell property value. The endCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetStartCell gets the startCell property value. The startCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endCell", m.GetEndCell()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startCell", m.GetStartCell()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndCell sets the endCell property value. The endCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endCell", value) - if err != nil { - panic(err) - } -} -// SetStartCell sets the startCell property value. The startCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBody) SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startCell", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/7dc6f67553b12a1b1a599a1ada268664438fd9e468a39d6b777bb2881465f486.go b/storage/7dc6f67553b12a1b1a599a1ada268664438fd9e468a39d6b777bb2881465f486.go deleted file mode 100644 index 77314805a7..0000000000 --- a/storage/7dc6f67553b12a1b1a599a1ada268664438fd9e468a39d6b777bb2881465f486.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartSeriesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetQueryParameters represents line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7e3923a0901f0fe651751a74bd88caaa05929b32b59ab6accf9366ffa4f7143f.go b/storage/7e3923a0901f0fe651751a74bd88caaa05929b32b59ab6accf9366ffa4f7143f.go deleted file mode 100644 index 3645648928..0000000000 --- a/storage/7e3923a0901f0fe651751a74bd88caaa05929b32b59ab6accf9366ffa4f7143f.go +++ /dev/null @@ -1,96 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/image(width={width},height={height})", pathParameters), - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseable), nil -} -// GetAsImageWithWidthWithHeightGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) GetAsImageWithWidthWithHeightGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7e80354c0607f6634a2b31d6c698c1bdda66a9ec7e7081f3b9d066e447f7d66c.go b/storage/7e80354c0607f6634a2b31d6c698c1bdda66a9ec7e7081f3b9d066e447f7d66c.go deleted file mode 100644 index 3ca4ec2630..0000000000 --- a/storage/7e80354c0607f6634a2b31d6c698c1bdda66a9ec7e7081f3b9d066e447f7d66c.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartLegendFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetQueryParameters represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes such as font name, font size, color, etc. of a chart legend. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/7eb08b11d146b135d71438d2948edbea08b73fdee4e6202b2962292352005dbd.go b/storage/7eb08b11d146b135d71438d2948edbea08b73fdee4e6202b2962292352005dbd.go deleted file mode 100644 index fc28e467ee..0000000000 --- a/storage/7eb08b11d146b135d71438d2948edbea08b73fdee4e6202b2962292352005dbd.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartLegendFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetQueryParameters represents the fill format of an object, which includes background formating information. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of an object, which includes background formating information. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of an object, which includes background formating information. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/814e0857de2c7ec04f9490e4ee1dcaa535e9139b8b811bee389c924ded5116d1.go b/storage/814e0857de2c7ec04f9490e4ee1dcaa535e9139b8b811bee389c924ded5116d1.go deleted file mode 100644 index 9883c9a8ee..0000000000 --- a/storage/814e0857de2c7ec04f9490e4ee1dcaa535e9139b8b811bee389c924ded5116d1.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. -// 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/tablesort-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/819859ad2cd43523088337710755ff162acd098b3a82908bd768ff2d820d52fc.go b/storage/819859ad2cd43523088337710755ff162acd098b3a82908bd768ff2d820d52fc.go deleted file mode 100644 index 51a962e337..0000000000 --- a/storage/819859ad2cd43523088337710755ff162acd098b3a82908bd768ff2d820d52fc.go +++ /dev/null @@ -1,75 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder provides operations to call the tableRowOperationResult method. -type FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, key *string)(*FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tableRowOperationResult(key='{key}')", pathParameters), - } - if key != nil { - m.BaseRequestBuilder.PathParameters["key"] = *key - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get this function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. -// returns a WorkbookTableRowable 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/workbook-tablerowoperationresult?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToGetRequestInformation this function is the last in a series of steps to create a workbookTableRow resource asynchronously. A best practice to create multiple table rows is to batch them in one create tableRow operation and carry out the operation asynchronously. An asynchronous request to create table rows involves the following steps:1. Issue an async Create tableRow request and get the query URL returned in the Location response header.2. Use the query URL returned from step 1 to issue the Get workbookOperation request and get the operation ID for step 3. Alternatively, for convenience, after you get a succeeded operationStatus result, you can get the query URL from the resourceLocation property of the workbookOperation returned in the response, and apply the query URL to step 3. 3. Use the query URL returned from step 2 as the GET request URL for this function tableRowOperationResult. A successful function call returns the new table rows in a workbookTableRow resource. This function does not do anything if called independently. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/81ba2e09aaa276e2ad297dc977acdc38280b6bf1051f5d89a1349d3fa77cb2bc.go b/storage/81ba2e09aaa276e2ad297dc977acdc38280b6bf1051f5d89a1349d3fa77cb2bc.go deleted file mode 100644 index d2f9554c13..0000000000 --- a/storage/81ba2e09aaa276e2ad297dc977acdc38280b6bf1051f5d89a1349d3fa77cb2bc.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/82029f4994ef5147b79e2737cba5d81679d0ba592be9005f5d0903072c7bca8c.go b/storage/82029f4994ef5147b79e2737cba5d81679d0ba592be9005f5d0903072c7bca8c.go deleted file mode 100644 index f59c9b74d9..0000000000 --- a/storage/82029f4994ef5147b79e2737cba5d81679d0ba592be9005f5d0903072c7bca8c.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder provides operations to call the apply method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post apply the given filter criteria on the given column. -// 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/filter-apply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation apply the given filter criteria on the given column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/83a8955cc16c68946d71b99aedd99f2cb71d0d74bf5eb1dfea5420168727ce2d.go b/storage/83a8955cc16c68946d71b99aedd99f2cb71d0d74bf5eb1dfea5420168727ce2d.go deleted file mode 100644 index 5dd1de6e0e..0000000000 --- a/storage/83a8955cc16c68946d71b99aedd99f2cb71d0d74bf5eb1dfea5420168727ce2d.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetQueryParameters encapsulates the format properties for the chart area. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get encapsulates the format properties for the chart area. Read-only. -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation encapsulates the format properties for the chart area. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/83add5bac163382dcb668f8c0f152d966a00bd33e0940ef04e0836a1e3df20a3.go b/storage/83add5bac163382dcb668f8c0f152d966a00bd33e0940ef04e0836a1e3df20a3.go deleted file mode 100644 index 43f6d8c22c..0000000000 --- a/storage/83add5bac163382dcb668f8c0f152d966a00bd33e0940ef04e0836a1e3df20a3.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookPivotTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters the worksheet containing the current PivotTable. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current PivotTable. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current PivotTable. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/83cdfc418be37a532c1edf3a767b9457933e167ef62b5ee3ae355474d835e0a8.go b/storage/83cdfc418be37a532c1edf3a767b9457933e167ef62b5ee3ae355474d835e0a8.go deleted file mode 100644 index 4f14220e67..0000000000 --- a/storage/83cdfc418be37a532c1edf3a767b9457933e167ef62b5ee3ae355474d835e0a8.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the totals row of the column. -// returns a WorkbookRangeable 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/tablecolumn-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the totals row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/8428f7c94e16f91ba0441bfc439c6f911c4878b9995d149f6046f4332610405f.go b/storage/8428f7c94e16f91ba0441bfc439c6f911c4878b9995d149f6046f4332610405f.go deleted file mode 100644 index 3a1b042e6c..0000000000 --- a/storage/8428f7c94e16f91ba0441bfc439c6f911c4878b9995d149f6046f4332610405f.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/84b3f95131672cac4260b4d27bbe7fca9e2264c7621746f9ca58ff4277b99e9f.go b/storage/84b3f95131672cac4260b4d27bbe7fca9e2264c7621746f9ca58ff4277b99e9f.go deleted file mode 100644 index 6a4a9f324b..0000000000 --- a/storage/84b3f95131672cac4260b4d27bbe7fca9e2264c7621746f9ca58ff4277b99e9f.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/84c8ae8fd1fddcf386cf566c3ff3dbc23beb0adc37c6608f87551d38a39c3114.go b/storage/84c8ae8fd1fddcf386cf566c3ff3dbc23beb0adc37c6608f87551d38a39c3114.go deleted file mode 100644 index 341bc1a4b9..0000000000 --- a/storage/84c8ae8fd1fddcf386cf566c3ff3dbc23beb0adc37c6608f87551d38a39c3114.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/85d9d4b9e14040018e7e6f7d38e25ba420987d3f00cd4d18e0fcc3c61792b2d1.go b/storage/85d9d4b9e14040018e7e6f7d38e25ba420987d3f00cd4d18e0fcc3c61792b2d1.go deleted file mode 100644 index 0463406380..0000000000 --- a/storage/85d9d4b9e14040018e7e6f7d38e25ba420987d3f00cd4d18e0fcc3c61792b2d1.go +++ /dev/null @@ -1,217 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Apply provides operations to call the apply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Apply()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyBottomItemsFilter provides operations to call the applyBottomItemsFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyBottomItemsFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyBottomPercentFilter provides operations to call the applyBottomPercentFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyBottomPercentFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyCellColorFilter provides operations to call the applyCellColorFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyCellColorFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyCustomFilter provides operations to call the applyCustomFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyCustomFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyDynamicFilter provides operations to call the applyDynamicFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyDynamicFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyDynamicFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyFontColorFilter provides operations to call the applyFontColorFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyFontColorFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyFontColorFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyIconFilter provides operations to call the applyIconFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyIconFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyIconFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyTopItemsFilter provides operations to call the applyTopItemsFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyTopItemsFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopItemsFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyTopPercentFilter provides operations to call the applyTopPercentFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyTopPercentFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ApplyValuesFilter provides operations to call the applyValuesFilter method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ApplyValuesFilter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property filter for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get retrieve the filter applied to the column. Read-only. -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// Patch update the navigation property filter in storage -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// ToDeleteRequestInformation delete navigation property filter for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property filter in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/86f9a8d3189a266531b9b3ac9baca4bc7619b33122881fa44a4f343be6967284.go b/storage/86f9a8d3189a266531b9b3ac9baca4bc7619b33122881fa44a4f343be6967284.go deleted file mode 100644 index f208cc0a14..0000000000 --- a/storage/86f9a8d3189a266531b9b3ac9baca4bc7619b33122881fa44a4f343be6967284.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetQueryParameters get itemActivityStats from storage -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Activities provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) Activities()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property itemActivityStats for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get get itemActivityStats from storage -// returns a ItemActivityStatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable), nil -} -// Patch update the navigation property itemActivityStats in storage -// returns a ItemActivityStatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable), nil -} -// ToDeleteRequestInformation delete navigation property itemActivityStats for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation get itemActivityStats from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property itemActivityStats in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/875aac9feca627e70db6ae8f74e40ef795b8bbc8d2bc5486fc1051f4b4fe437b.go b/storage/875aac9feca627e70db6ae8f74e40ef795b8bbc8d2bc5486fc1051f4b4fe437b.go deleted file mode 100644 index d5f309e70d..0000000000 --- a/storage/875aac9feca627e70db6ae8f74e40ef795b8bbc8d2bc5486fc1051f4b4fe437b.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable instead. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse struct { - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse()(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse{ - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse: *NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable instead. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable interface { - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/89787d664a94bd8a15f1da44fa1a6148f3e2b0899b690770a65859776b33cf10.go b/storage/89787d664a94bd8a15f1da44fa1a6148f3e2b0899b690770a65859776b33cf10.go deleted file mode 100644 index c1a53ff79d..0000000000 --- a/storage/89787d664a94bd8a15f1da44fa1a6148f3e2b0899b690770a65859776b33cf10.go +++ /dev/null @@ -1,96 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width},height={height})", pathParameters), - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightResponseable), nil -} -// GetAsImageWithWidthWithHeightGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) GetAsImageWithWidthWithHeightGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/89a15a9ab07dc1bfc2bda4bf49a72ab677cd238e886641abe4c9e47b017761ed.go b/storage/89a15a9ab07dc1bfc2bda4bf49a72ab677cd238e886641abe4c9e47b017761ed.go deleted file mode 100644 index acce9e1ec2..0000000000 --- a/storage/89a15a9ab07dc1bfc2bda4bf49a72ab677cd238e886641abe4c9e47b017761ed.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the entire column. -// returns a WorkbookRangeable 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/tablecolumn-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the entire column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/8a8393653b11497c8e2026525f99cdc759ded6895b7b22eb752aac919286aaec.go b/storage/8a8393653b11497c8e2026525f99cdc759ded6895b7b22eb752aac919286aaec.go deleted file mode 100644 index 8eaa705571..0000000000 --- a/storage/8a8393653b11497c8e2026525f99cdc759ded6895b7b22eb752aac919286aaec.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/8a9e22b208294b488c8f416e1889036c9d17c402a3a11eb5832e92a1f12397bc.go b/storage/8a9e22b208294b488c8f416e1889036c9d17c402a3a11eb5832e92a1f12397bc.go deleted file mode 100644 index c3bf627d9a..0000000000 --- a/storage/8a9e22b208294b488c8f416e1889036c9d17c402a3a11eb5832e92a1f12397bc.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/8b2122923e9093a530d19158d85622766862d1b1c93e9e78bda301adb1fca0a0.go b/storage/8b2122923e9093a530d19158d85622766862d1b1c93e9e78bda301adb1fca0a0.go deleted file mode 100644 index 9e71289570..0000000000 --- a/storage/8b2122923e9093a530d19158d85622766862d1b1c93e9e78bda301adb1fca0a0.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/8c21d20a18a9a63f270f1fd2dfca6f8e3e654c65cdd775e43b10c13173ff650f.go b/storage/8c21d20a18a9a63f270f1fd2dfca6f8e3e654c65cdd775e43b10c13173ff650f.go deleted file mode 100644 index e958e2c0d9..0000000000 --- a/storage/8c21d20a18a9a63f270f1fd2dfca6f8e3e654c65cdd775e43b10c13173ff650f.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/8d1aedad3aa45a6100141a7b7346e58ccb319d82419dce4b3b86847f2e2e7aec.go b/storage/8d1aedad3aa45a6100141a7b7346e58ccb319d82419dce4b3b86847f2e2e7aec.go deleted file mode 100644 index b28434d5aa..0000000000 --- a/storage/8d1aedad3aa45a6100141a7b7346e58ccb319d82419dce4b3b86847f2e2e7aec.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/8dca73de33ff60d553d6cb9bdeb43d5a20f0bc448876682db7da11599f8df9bc.go b/storage/8dca73de33ff60d553d6cb9bdeb43d5a20f0bc448876682db7da11599f8df9bc.go deleted file mode 100644 index 9771cec7f6..0000000000 --- a/storage/8dca73de33ff60d553d6cb9bdeb43d5a20f0bc448876682db7da11599f8df9bc.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/8dd7825ee4a8126e63197e5771084d27c9ac899f1614590fef8c0df05ed084cf.go b/storage/8dd7825ee4a8126e63197e5771084d27c9ac899f1614590fef8c0df05ed084cf.go deleted file mode 100644 index 4b9be07f8b..0000000000 --- a/storage/8dd7825ee4a8126e63197e5771084d27c9ac899f1614590fef8c0df05ed084cf.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["icon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookIconFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIcon(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)) - } - return nil - } - return res -} -// GetIcon gets the icon property value. The icon property -// returns a WorkbookIconable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) GetIcon()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) { - val, err := m.GetBackingStore().Get("icon") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("icon", m.GetIcon()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIcon sets the icon property value. The icon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBody) SetIcon(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)() { - err := m.GetBackingStore().Set("icon", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyIconFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIcon()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIcon(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookIconable)() -} diff --git a/storage/9001033dc5e86a3958f6e332b9603d4cf95f136563395e049d2288021446788e.go b/storage/9001033dc5e86a3958f6e332b9603d4cf95f136563395e049d2288021446788e.go deleted file mode 100644 index 0785d0af2b..0000000000 --- a/storage/9001033dc5e86a3958f6e332b9603d4cf95f136563395e049d2288021446788e.go +++ /dev/null @@ -1,222 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters returns collection of charts that are part of the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Axes provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Axes()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderInternal(urlParams, requestAdapter) -} -// DataLabels provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) DataLabels()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property charts for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns collection of charts that are part of the worksheet. Read-only. -// returns a WorkbookChartable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// Image provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Image()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImageWithWidth provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ImageWithWidth(width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, width) -} -// ImageWithWidthWithHeight provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ImageWithWidthWithHeight(height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, height, width) -} -// ImageWithWidthWithHeightWithFittingMode provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ImageWithWidthWithHeightWithFittingMode(fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, fittingMode, height, width) -} -// Legend provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Legend()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property charts in storage -// returns a WorkbookChartable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// Series provides operations to manage the series property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Series()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetData provides operations to call the setData method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) SetData()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetPosition provides operations to call the setPosition method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) SetPosition()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property charts for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns collection of charts that are part of the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property charts in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/900dfac56e6bc7e539ae3d08b4eca4b6a67fb032bf62134ec9f79dc1c03c7b70.go b/storage/900dfac56e6bc7e539ae3d08b4eca4b6a67fb032bf62134ec9f79dc1c03c7b70.go deleted file mode 100644 index d7f43421e4..0000000000 --- a/storage/900dfac56e6bc7e539ae3d08b4eca4b6a67fb032bf62134ec9f79dc1c03c7b70.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with totals row of the table. -// returns a WorkbookRangeable 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/table-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with totals row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/90fa966f0db86764e5dbf87cd99bd5a2438c5eeaf30813657d8adcb5e9334ccd.go b/storage/90fa966f0db86764e5dbf87cd99bd5a2438c5eeaf30813657d8adcb5e9334ccd.go deleted file mode 100644 index 96724bc38c..0000000000 --- a/storage/90fa966f0db86764e5dbf87cd99bd5a2438c5eeaf30813657d8adcb5e9334ccd.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["seriesBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSeriesBy(val) - } - return nil - } - res["sourceData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSourceData(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSeriesBy gets the seriesBy property value. The seriesBy property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) GetSeriesBy()(*string) { - val, err := m.GetBackingStore().Get("seriesBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSourceData gets the sourceData property value. The sourceData property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sourceData") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("seriesBy", m.GetSeriesBy()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sourceData", m.GetSourceData()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSeriesBy sets the seriesBy property value. The seriesBy property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) SetSeriesBy(value *string)() { - err := m.GetBackingStore().Set("seriesBy", value) - if err != nil { - panic(err) - } -} -// SetSourceData sets the sourceData property value. The sourceData property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBody) SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sourceData", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSeriesBy()(*string) - GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSeriesBy(value *string)() - SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/9190b713f58496a73a6ad58e03c5d4aae88b8cc675904a61bebb94d7d72c46d4.go b/storage/9190b713f58496a73a6ad58e03c5d4aae88b8cc675904a61bebb94d7d72c46d4.go deleted file mode 100644 index 9d16137a64..0000000000 --- a/storage/9190b713f58496a73a6ad58e03c5d4aae88b8cc675904a61bebb94d7d72c46d4.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property filter for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get retrieve the filter applied to the column. Read-only. -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// Patch update the navigation property filter in storage -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// ToDeleteRequestInformation delete navigation property filter for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property filter in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9337ea97b74b50bc9e94cd167fb41c78a5bef4f05b4793d7d5183ab5243fc0fa.go b/storage/9337ea97b74b50bc9e94cd167fb41c78a5bef4f05b4793d7d5183ab5243fc0fa.go deleted file mode 100644 index b7736904f7..0000000000 --- a/storage/9337ea97b74b50bc9e94cd167fb41c78a5bef4f05b4793d7d5183ab5243fc0fa.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9402ff2d567fdfc2b5a4d95f3ae141f4d5d52a3c3d29d2c8c647f0d19ec626bb.go b/storage/9402ff2d567fdfc2b5a4d95f3ae141f4d5d52a3c3d29d2c8c647f0d19ec626bb.go deleted file mode 100644 index 9416ddaa32..0000000000 --- a/storage/9402ff2d567fdfc2b5a4d95f3ae141f4d5d52a3c3d29d2c8c647f0d19ec626bb.go +++ /dev/null @@ -1,99 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height},fittingMode='{fittingMode}')", pathParameters), - } - if fittingMode != nil { - m.BaseRequestBuilder.PathParameters["fittingMode"] = *fittingMode - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightWithFittingModeGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseable), nil -} -// GetAsImageWithWidthWithHeightWithFittingModeGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) GetAsImageWithWidthWithHeightWithFittingModeGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/95526e02b9a9de9ce4dfd9285a3428352144372c2e628443057f4320d7c833a2.go b/storage/95526e02b9a9de9ce4dfd9285a3428352144372c2e628443057f4320d7c833a2.go deleted file mode 100644 index e20d55c82f..0000000000 --- a/storage/95526e02b9a9de9ce4dfd9285a3428352144372c2e628443057f4320d7c833a2.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from storage -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/{workbookCommentReply%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property replies for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get get replies from storage -// returns a WorkbookCommentReplyable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable), nil -} -// Patch update the navigation property replies in storage -// returns a WorkbookCommentReplyable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable), nil -} -// ToDeleteRequestInformation delete navigation property replies for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation get replies from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property replies in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/96718cd94a3f5f637a1459a8cfa7d16c0988dbad9c1c626381e524b54fa8b77e.go b/storage/96718cd94a3f5f637a1459a8cfa7d16c0988dbad9c1c626381e524b54fa8b77e.go deleted file mode 100644 index f8e24733b2..0000000000 --- a/storage/96718cd94a3f5f637a1459a8cfa7d16c0988dbad9c1c626381e524b54fa8b77e.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\lastModifiedByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/97074ed01d0be77760a66ccb4141e77f20bed9d0d8ce125c01c61b3f6a5a2b3a.go b/storage/97074ed01d0be77760a66ccb4141e77f20bed9d0d8ce125c01c61b3f6a5a2b3a.go deleted file mode 100644 index e8c7dd18b2..0000000000 --- a/storage/97074ed01d0be77760a66ccb4141e77f20bed9d0d8ce125c01c61b3f6a5a2b3a.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters represents the data labels on the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/dataLabels{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property dataLabels for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the data labels on the chart. Read-only. -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// Patch update the navigation property dataLabels in storage -// returns a WorkbookChartDataLabelsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable), nil -} -// ToDeleteRequestInformation delete navigation property dataLabels for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the data labels on the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property dataLabels in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameDataLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/97ad263e80474fa54e7233483f6c1d22fff28da038b2e2912cb4db4d688a4662.go b/storage/97ad263e80474fa54e7233483f6c1d22fff28da038b2e2912cb4db4d688a4662.go deleted file mode 100644 index 76e6dd4c2f..0000000000 --- a/storage/97ad263e80474fa54e7233483f6c1d22fff28da038b2e2912cb4db4d688a4662.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property rows for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// Patch update the navigation property rows in storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property rows in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/97d8ca5450f89c19a3e592647ff4acd92277b17ae22afe2a530ecea35f7ea848.go b/storage/97d8ca5450f89c19a3e592647ff4acd92277b17ae22afe2a530ecea35f7ea848.go deleted file mode 100644 index 6bea3a5d8a..0000000000 --- a/storage/97d8ca5450f89c19a3e592647ff4acd92277b17ae22afe2a530ecea35f7ea848.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9844348b6635ec1ba590ca0fdbee4f84af536bf1abc5d772b88ef66836f935b5.go b/storage/9844348b6635ec1ba590ca0fdbee4f84af536bf1abc5d772b88ef66836f935b5.go deleted file mode 100644 index 9717f606da..0000000000 --- a/storage/9844348b6635ec1ba590ca0fdbee4f84af536bf1abc5d772b88ef66836f935b5.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetQueryParameters returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property majorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property majorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property majorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property majorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/984ec70f52a039f6d32ac6189198b7b37d9e1e7ffc6765f594fa329e9bb3a09f.go b/storage/984ec70f52a039f6d32ac6189198b7b37d9e1e7ffc6765f594fa329e9bb3a09f.go deleted file mode 100644 index 650876aaf4..0000000000 --- a/storage/984ec70f52a039f6d32ac6189198b7b37d9e1e7ffc6765f594fa329e9bb3a09f.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/98bc88f3f4d769ac1c222697be9a3327e7a5a96154cf73ea55bd8b9a085c7288.go b/storage/98bc88f3f4d769ac1c222697be9a3327e7a5a96154cf73ea55bd8b9a085c7288.go deleted file mode 100644 index 8cdcc9daef..0000000000 --- a/storage/98bc88f3f4d769ac1c222697be9a3327e7a5a96154cf73ea55bd8b9a085c7288.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["index"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetIndex(val) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIndex gets the index property value. The index property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) GetIndex()(*int32) { - val, err := m.GetBackingStore().Get("index") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("index", m.GetIndex()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIndex sets the index property value. The index property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) SetIndex(value *int32)() { - err := m.GetBackingStore().Set("index", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIndex()(*int32) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIndex(value *int32)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/993d203594de80c09f74c84eb31eba83395267298fbf37be2df6da29fffc54e2.go b/storage/993d203594de80c09f74c84eb31eba83395267298fbf37be2df6da29fffc54e2.go deleted file mode 100644 index 788b7f0f82..0000000000 --- a/storage/993d203594de80c09f74c84eb31eba83395267298fbf37be2df6da29fffc54e2.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableRowId provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) ByWorkbookTableRowId(workbookTableRowId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableRowId != "" { - urlTplParams["workbookTableRow%2Did"] = workbookTableRowId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to rows for storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/99c2c89afd307e200c53ac2cdf4dd110309d3769add2cefa0e5c29d756aec6ca.go b/storage/99c2c89afd307e200c53ac2cdf4dd110309d3769add2cefa0e5c29d756aec6ca.go deleted file mode 100644 index 3b76139fd4..0000000000 --- a/storage/99c2c89afd307e200c53ac2cdf4dd110309d3769add2cefa0e5c29d756aec6ca.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookChartPointId provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ByWorkbookChartPointId(workbookChartPointId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookChartPointId != "" { - urlTplParams["workbookChartPoint%2Did"] = workbookChartPointId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all points in the series. Read-only. -// returns a WorkbookChartPointCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to points for storage -// returns a WorkbookChartPointable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable), nil -} -// ToGetRequestInformation represents a collection of all points in the series. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to points for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9b4de85b9f603bdc5f3f73f449485bc0f7829ae138fd5db46444332325c9662a.go b/storage/9b4de85b9f603bdc5f3f73f449485bc0f7829ae138fd5db46444332325c9662a.go deleted file mode 100644 index 34e03ddebb..0000000000 --- a/storage/9b4de85b9f603bdc5f3f73f449485bc0f7829ae138fd5db46444332325c9662a.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get gets a row based on its position in the collection. -// returns a WorkbookTableRowable 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/tablerowcollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation gets a row based on its position in the collection. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9b6893c4a252c27cf41ff341a25ef5b8f05e3d06f204c34800ebf4bb103ed49a.go b/storage/9b6893c4a252c27cf41ff341a25ef5b8f05e3d06f204c34800ebf4bb103ed49a.go deleted file mode 100644 index f183e611a0..0000000000 --- a/storage/9b6893c4a252c27cf41ff341a25ef5b8f05e3d06f204c34800ebf4bb103ed49a.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetQueryParameters returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property majorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property majorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property majorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property majorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9b86a2a5b83c2484593fc8c5125b77cd4f301e7cbb3bb20043c42a8832cc7232.go b/storage/9b86a2a5b83c2484593fc8c5125b77cd4f301e7cbb3bb20043c42a8832cc7232.go deleted file mode 100644 index e20765fcc8..0000000000 --- a/storage/9b86a2a5b83c2484593fc8c5125b77cd4f301e7cbb3bb20043c42a8832cc7232.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetQueryParameters exposes the driveItem that was the target of this activity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) Content()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get exposes the driveItem that was the target of this activity. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation exposes the driveItem that was the target of this activity. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9bc5360f0af7f1f44d640473167b820989aa6f163921ea2f51ba3cdccff411dd.go b/storage/9bc5360f0af7f1f44d640473167b820989aa6f163921ea2f51ba3cdccff411dd.go deleted file mode 100644 index 7034ff2740..0000000000 --- a/storage/9bc5360f0af7f1f44d640473167b820989aa6f163921ea2f51ba3cdccff411dd.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable), nil -} -// Post create new navigation property to columns for storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9d09b7d7227209f52df3814700a98eb4859a9b12b547dc2375dfb09f514c8de1.go b/storage/9d09b7d7227209f52df3814700a98eb4859a9b12b547dc2375dfb09f514c8de1.go deleted file mode 100644 index 84220b78b1..0000000000 --- a/storage/9d09b7d7227209f52df3814700a98eb4859a9b12b547dc2375dfb09f514c8de1.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColor gets the color property value. The color property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) GetColor()(*string) { - val, err := m.GetBackingStore().Get("color") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["color"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetColor(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("color", m.GetColor()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColor sets the color property value. The color property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBody) SetColor(value *string)() { - err := m.GetBackingStore().Set("color", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillSetSolidColorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColor()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColor(value *string)() -} diff --git a/storage/9e7a579cd81e917985061cca125adbc1ae86fc72a475dc384702be584a25f2d3.go b/storage/9e7a579cd81e917985061cca125adbc1ae86fc72a475dc384702be584a25f2d3.go deleted file mode 100644 index 911faa068a..0000000000 --- a/storage/9e7a579cd81e917985061cca125adbc1ae86fc72a475dc384702be584a25f2d3.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetQueryParameters represents the fill format of a chart series, which includes background formatting information. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of a chart series, which includes background formatting information. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of a chart series, which includes background formatting information. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9e7e3b229e14dedb7a880c52d00dbbfa11fecfb6b292e5d59d6cd150debcf44c.go b/storage/9e7e3b229e14dedb7a880c52d00dbbfa11fecfb6b292e5d59d6cd150debcf44c.go deleted file mode 100644 index 78164a7018..0000000000 --- a/storage/9e7e3b229e14dedb7a880c52d00dbbfa11fecfb6b292e5d59d6cd150debcf44c.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetQueryParameters returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/minorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property minorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property minorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property minorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a Gridlines object that represents the minor gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property minorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMinorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/9f6bd9fa1b334d18a20b1f42d1ae3665952372c68f0f26d3d7b7babb28b49e01.go b/storage/9f6bd9fa1b334d18a20b1f42d1ae3665952372c68f0f26d3d7b7babb28b49e01.go deleted file mode 100644 index 77acfdf003..0000000000 --- a/storage/9f6bd9fa1b334d18a20b1f42d1ae3665952372c68f0f26d3d7b7babb28b49e01.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/9fabee86623305fa715fc2186a7b421324205cd42ea686abbc0a15bb90ba1a0c.go b/storage/9fabee86623305fa715fc2186a7b421324205cd42ea686abbc0a15bb90ba1a0c.go deleted file mode 100644 index 92543191de..0000000000 --- a/storage/9fabee86623305fa715fc2186a7b421324205cd42ea686abbc0a15bb90ba1a0c.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a1a969ad46c5f49b33c80534a36db9ff62e23b2f528fd428f2b19d4c0277697e.go b/storage/a1a969ad46c5f49b33c80534a36db9ff62e23b2f528fd428f2b19d4c0277697e.go deleted file mode 100644 index 60d639abc6..0000000000 --- a/storage/a1a969ad46c5f49b33c80534a36db9ff62e23b2f528fd428f2b19d4c0277697e.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetQueryParameters represents the axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the axis title. Read-only. -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a1c3c39a7489305a32a61262db94c4a57a79b5c038ccd02e338184ce0a5070d0.go b/storage/a1c3c39a7489305a32a61262db94c4a57a79b5c038ccd02e338184ce0a5070d0.go deleted file mode 100644 index e913585da9..0000000000 --- a/storage/a1c3c39a7489305a32a61262db94c4a57a79b5c038ccd02e338184ce0a5070d0.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with header row of the table. -// returns a WorkbookRangeable 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/table-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with header row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a2102ee35a6d7766a581914780f5887223c0935ea7310678d117397d262c376e.go b/storage/a2102ee35a6d7766a581914780f5887223c0935ea7310678d117397d262c376e.go deleted file mode 100644 index 072083b9b9..0000000000 --- a/storage/a2102ee35a6d7766a581914780f5887223c0935ea7310678d117397d262c376e.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["seriesBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSeriesBy(val) - } - return nil - } - res["sourceData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSourceData(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSeriesBy gets the seriesBy property value. The seriesBy property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) GetSeriesBy()(*string) { - val, err := m.GetBackingStore().Get("seriesBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSourceData gets the sourceData property value. The sourceData property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sourceData") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("seriesBy", m.GetSeriesBy()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sourceData", m.GetSourceData()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSeriesBy sets the seriesBy property value. The seriesBy property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) SetSeriesBy(value *string)() { - err := m.GetBackingStore().Set("seriesBy", value) - if err != nil { - panic(err) - } -} -// SetSourceData sets the sourceData property value. The sourceData property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBody) SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sourceData", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetDataPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSeriesBy()(*string) - GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSeriesBy(value *string)() - SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/a29eb28ca18f413702a8a3bbb41873ada6b4380238f9301d7ff7c740ac0f0839.go b/storage/a29eb28ca18f413702a8a3bbb41873ada6b4380238f9301d7ff7c740ac0f0839.go deleted file mode 100644 index 0a69693236..0000000000 --- a/storage/a29eb28ca18f413702a8a3bbb41873ada6b4380238f9301d7ff7c740ac0f0839.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetQueryParameters represents the formatting of a chart object, which includes line and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a4098504c3c680b067c0aa00447d4fff5f3acb7854b2bc54a07d3ed06939de28.go b/storage/a4098504c3c680b067c0aa00447d4fff5f3acb7854b2bc54a07d3ed06939de28.go deleted file mode 100644 index 93a8a14baf..0000000000 --- a/storage/a4098504c3c680b067c0aa00447d4fff5f3acb7854b2bc54a07d3ed06939de28.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for a chart axis element. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a6cc56d2ba2233273eace2405154168a6273c4ce3c4041ade53739b1f04ff5ff.go b/storage/a6cc56d2ba2233273eace2405154168a6273c4ce3c4041ade53739b1f04ff5ff.go deleted file mode 100644 index 65ec9cb63d..0000000000 --- a/storage/a6cc56d2ba2233273eace2405154168a6273c4ce3c4041ade53739b1f04ff5ff.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder provides operations to call the applyCustomFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyCustomFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyCustomFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a78553cf0304cd10c47a0bf65de723a16c5a862b3a87da13e6857c8f5ab35af7.go b/storage/a78553cf0304cd10c47a0bf65de723a16c5a862b3a87da13e6857c8f5ab35af7.go deleted file mode 100644 index 134686b792..0000000000 --- a/storage/a78553cf0304cd10c47a0bf65de723a16c5a862b3a87da13e6857c8f5ab35af7.go +++ /dev/null @@ -1,151 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody instantiates a new FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody()(*FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) { - m := &FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDestinationFileName gets the destinationFileName property value. The destinationFileName property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetDestinationFileName()(*string) { - val, err := m.GetBackingStore().Get("destinationFileName") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["destinationFileName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetDestinationFileName(val) - } - return nil - } - res["sourceFile"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemReferenceFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSourceFile(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)) - } - return nil - } - return res -} -// GetSourceFile gets the sourceFile property value. The sourceFile property -// returns a ItemReferenceable when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) GetSourceFile()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) { - val, err := m.GetBackingStore().Get("sourceFile") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("destinationFileName", m.GetDestinationFileName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sourceFile", m.GetSourceFile()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDestinationFileName sets the destinationFileName property value. The destinationFileName property -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetDestinationFileName(value *string)() { - err := m.GetBackingStore().Set("destinationFileName", value) - if err != nil { - panic(err) - } -} -// SetSourceFile sets the sourceFile property value. The sourceFile property -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBody) SetSourceFile(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() { - err := m.GetBackingStore().Set("sourceFile", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDestinationFileName()(*string) - GetSourceFile()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDestinationFileName(value *string)() - SetSourceFile(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() -} diff --git a/storage/a8c8e54a3922ecaad2fc8d6bf7bf02268154c0a04b18678403bb126d625f2ba8.go b/storage/a8c8e54a3922ecaad2fc8d6bf7bf02268154c0a04b18678403bb126d625f2ba8.go deleted file mode 100644 index 9f24ae61ca..0000000000 --- a/storage/a8c8e54a3922ecaad2fc8d6bf7bf02268154c0a04b18678403bb126d625f2ba8.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/sort{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property sort for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the sorting for the table. Read-only. -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Patch update the navigation property sort in storage -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// ToDeleteRequestInformation delete navigation property sort for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the sorting for the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property sort in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/a919553e2a11b8601553aa94a6adcfda2b97c7baae3791b2bb1f04207566ff93.go b/storage/a919553e2a11b8601553aa94a6adcfda2b97c7baae3791b2bb1f04207566ff93.go deleted file mode 100644 index 8b5e562d3b..0000000000 --- a/storage/a919553e2a11b8601553aa94a6adcfda2b97c7baae3791b2bb1f04207566ff93.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder provides operations to call the addFormulaLocal method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/addFormulaLocal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a WorkbookNamedItemable 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/nameditem-addformulalocal?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToPostRequestInformation adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/aa5655f3ae092c460373058c52bf0eb7b0931a22f7577fa7048e5f73248a7bae.go b/storage/aa5655f3ae092c460373058c52bf0eb7b0931a22f7577fa7048e5f73248a7bae.go deleted file mode 100644 index 509ef069a6..0000000000 --- a/storage/aa5655f3ae092c460373058c52bf0eb7b0931a22f7577fa7048e5f73248a7bae.go +++ /dev/null @@ -1,172 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetQueryParameters represents chart axes. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// CategoryAxis provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) CategoryAxis()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property axes for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart axes. Read-only. -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// Patch update the navigation property axes in storage -// returns a WorkbookChartAxesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable), nil -} -// SeriesAxis provides operations to manage the seriesAxis property of the microsoft.graph.workbookChartAxes entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) SeriesAxis()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property axes for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart axes. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property axes in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// ValueAxis provides operations to manage the valueAxis property of the microsoft.graph.workbookChartAxes entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) ValueAxis()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/aab2b0321c487e232ecbe8dc04931b772a6280ae7ef11ab453d78a79a57b6bc0.go b/storage/aab2b0321c487e232ecbe8dc04931b772a6280ae7ef11ab453d78a79a57b6bc0.go deleted file mode 100644 index 52987177ef..0000000000 --- a/storage/aab2b0321c487e232ecbe8dc04931b772a6280ae7ef11ab453d78a79a57b6bc0.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the table. -// returns a WorkbookRangeable 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/table-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/aab54f03ff1c80bd60b64090bb398946adde211329e8d045185491487a3590a7.go b/storage/aab54f03ff1c80bd60b64090bb398946adde211329e8d045185491487a3590a7.go deleted file mode 100644 index 5e9c057ba3..0000000000 --- a/storage/aab54f03ff1c80bd60b64090bb398946adde211329e8d045185491487a3590a7.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetQueryParameters represents the formatting of chart axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of chart axis title. Read-only. -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ab3c7d243cbdd7b102733c6c7e55620d75178ca2f8e286e2a59b38c3a24ad343.go b/storage/ab3c7d243cbdd7b102733c6c7e55620d75178ca2f8e286e2a59b38c3a24ad343.go deleted file mode 100644 index 1f69d719bd..0000000000 --- a/storage/ab3c7d243cbdd7b102733c6c7e55620d75178ca2f8e286e2a59b38c3a24ad343.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetQueryParameters represents the formatting of a chart object, which includes line and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart object, which includes line and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ac98fae11c7dc1c8d1a20d94fca325eacb93522f6f0152d5c31de1620240ec2d.go b/storage/ac98fae11c7dc1c8d1a20d94fca325eacb93522f6f0152d5c31de1620240ec2d.go deleted file mode 100644 index 1f1517eba4..0000000000 --- a/storage/ac98fae11c7dc1c8d1a20d94fca325eacb93522f6f0152d5c31de1620240ec2d.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/ad9ad20a70146285983c4cdc9225482e7e5c7ad859f579ea9e851e842e5209b0.go b/storage/ad9ad20a70146285983c4cdc9225482e7e5c7ad859f579ea9e851e842e5209b0.go deleted file mode 100644 index 1585001859..0000000000 --- a/storage/ad9ad20a70146285983c4cdc9225482e7e5c7ad859f579ea9e851e842e5209b0.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/add9d09508c7a86e4582df7385e02cfda81fad3a04250a01e5ae1fc1eab8a6dd.go b/storage/add9d09508c7a86e4582df7385e02cfda81fad3a04250a01e5ae1fc1eab8a6dd.go deleted file mode 100644 index 2bf4db82f3..0000000000 --- a/storage/add9d09508c7a86e4582df7385e02cfda81fad3a04250a01e5ae1fc1eab8a6dd.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder provides operations to call the setData method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/setData", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderInternal(urlParams, requestAdapter) -} -// Post resets the source data for the chart. -// 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/chart-setdata?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation resets the source data for the chart. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetDataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/aeec20efc3d27629166a0157583519350c330a9bbba84a7b095c56df42f88300.go b/storage/aeec20efc3d27629166a0157583519350c330a9bbba84a7b095c56df42f88300.go deleted file mode 100644 index 22b21c0bbd..0000000000 --- a/storage/aeec20efc3d27629166a0157583519350c330a9bbba84a7b095c56df42f88300.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters represents the formatting of a chart series, which includes fill and line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartSeriesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart series, which includes fill and line formatting. Read-only. -// returns a WorkbookChartSeriesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartSeriesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartSeriesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart series, which includes fill and line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/af65bdfad8f97c47a803dc75067373fa07c5275c2072ebcb1348c248b5795a42.go b/storage/af65bdfad8f97c47a803dc75067373fa07c5275c2072ebcb1348c248b5795a42.go deleted file mode 100644 index 6382789dd2..0000000000 --- a/storage/af65bdfad8f97c47a803dc75067373fa07c5275c2072ebcb1348c248b5795a42.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable), nil -} -// Post create new navigation property to columns for storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b0188886a1629e8ee172338b74fc4a40be8e92c1f6966968aca29353ee0f10ae.go b/storage/b0188886a1629e8ee172338b74fc4a40be8e92c1f6966968aca29353ee0f10ae.go deleted file mode 100644 index e2a196809a..0000000000 --- a/storage/b0188886a1629e8ee172338b74fc4a40be8e92c1f6966968aca29353ee0f10ae.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\items\{listItem-id}\lastModifiedByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b0938829cbbf8836c77d905a6bffc5d08f346b4d277ea67a377622d561c8f798.go b/storage/b0938829cbbf8836c77d905a6bffc5d08f346b4d277ea67a377622d561c8f798.go deleted file mode 100644 index 6f496b9e60..0000000000 --- a/storage/b0938829cbbf8836c77d905a6bffc5d08f346b4d277ea67a377622d561c8f798.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b0b323e780fe42b95f65a0c2b0c37cbecb0aa9394fa6099ed2e3aef5e6fbaef4.go b/storage/b0b323e780fe42b95f65a0c2b0c37cbecb0aa9394fa6099ed2e3aef5e6fbaef4.go deleted file mode 100644 index 82cf44c122..0000000000 --- a/storage/b0b323e780fe42b95f65a0c2b0c37cbecb0aa9394fa6099ed2e3aef5e6fbaef4.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters the worksheet containing the current table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current table. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b1278024c623ad8025e975fad14941dda8e9d73e1343bd07991360b50d07370c.go b/storage/b1278024c623ad8025e975fad14941dda8e9d73e1343bd07991360b50d07370c.go deleted file mode 100644 index e2c76f6bfc..0000000000 --- a/storage/b1278024c623ad8025e975fad14941dda8e9d73e1343bd07991360b50d07370c.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the entire column. -// returns a WorkbookRangeable 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/tablecolumn-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the entire column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b1bb2be6f0c72a3d3efb6faa4b57989de2539aacd533c95ae56cdd67b5dabf80.go b/storage/b1bb2be6f0c72a3d3efb6faa4b57989de2539aacd533c95ae56cdd67b5dabf80.go deleted file mode 100644 index bbbb769b69..0000000000 --- a/storage/b1bb2be6f0c72a3d3efb6faa4b57989de2539aacd533c95ae56cdd67b5dabf80.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder provides operations to call the apply method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/sort/apply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post perform a sort operation. -// 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/tablesort-apply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation perform a sort operation. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemSortApplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b23a15c493a60353f14c0b0ca3bd6a1e2c493c62224a6ceacabcb6d17ccefaf5.go b/storage/b23a15c493a60353f14c0b0ca3bd6a1e2c493c62224a6ceacabcb6d17ccefaf5.go deleted file mode 100644 index 357a473d40..0000000000 --- a/storage/b23a15c493a60353f14c0b0ca3bd6a1e2c493c62224a6ceacabcb6d17ccefaf5.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/{itemActivityStat%2Did}/activities/{itemActivity%2Did}/driveItem/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivitiesItemDriveItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b26c18a445ca13a0903df93fea7290a02e999dfe7ef15839f33c2f3005bb3a23.go b/storage/b26c18a445ca13a0903df93fea7290a02e999dfe7ef15839f33c2f3005bb3a23.go deleted file mode 100644 index 09ed21054c..0000000000 --- a/storage/b26c18a445ca13a0903df93fea7290a02e999dfe7ef15839f33c2f3005bb3a23.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a WorkbookFilterCriteriaable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) GetCriteria()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterCriteriaFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBody) SetCriteria(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)() -} diff --git a/storage/b3587bf53997524f5e8dae75fef6cba6ff1f9d20a0ab3d315470e479a7d3c6a0.go b/storage/b3587bf53997524f5e8dae75fef6cba6ff1f9d20a0ab3d315470e479a7d3c6a0.go deleted file mode 100644 index eb46cf44fa..0000000000 --- a/storage/b3587bf53997524f5e8dae75fef6cba6ff1f9d20a0ab3d315470e479a7d3c6a0.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetQueryParameters represents the axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the axis title. Read-only. -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartAxisTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b424c45edae929fc9846a49ca2c9b54c7eb52c766868d8cf2526bc01ea65053c.go b/storage/b424c45edae929fc9846a49ca2c9b54c7eb52c766868d8cf2526bc01ea65053c.go deleted file mode 100644 index fd614fe01e..0000000000 --- a/storage/b424c45edae929fc9846a49ca2c9b54c7eb52c766868d8cf2526bc01ea65053c.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetQueryParameters the worksheet containing the current chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current chart. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b4684db8e68ad0743b52c57b146b2674710e6d8e69acae75322dd7d89a9053f8.go b/storage/b4684db8e68ad0743b52c57b146b2674710e6d8e69acae75322dd7d89a9053f8.go deleted file mode 100644 index d027ca4009..0000000000 --- a/storage/b4684db8e68ad0743b52c57b146b2674710e6d8e69acae75322dd7d89a9053f8.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartTitle entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters represents the formatting of a chart title, which includes fill and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartTitleFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartTitleFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart title, which includes fill and font formatting. Read-only. -// returns a WorkbookChartTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart title, which includes fill and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b4bd3af2c397384432de831efc4900f54c32109b4d94c8b988d08427d4c7339d.go b/storage/b4bd3af2c397384432de831efc4900f54c32109b4d94c8b988d08427d4c7339d.go deleted file mode 100644 index 2df61e7c0d..0000000000 --- a/storage/b4bd3af2c397384432de831efc4900f54c32109b4d94c8b988d08427d4c7339d.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\items\{driveItem-id}\createdByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b4ee45c0118c7e131bf7e8b0e6abf40e18ae60b9e1baed178be78371c9f5b060.go b/storage/b4ee45c0118c7e131bf7e8b0e6abf40e18ae60b9e1baed178be78371c9f5b060.go deleted file mode 100644 index 8c6493ac91..0000000000 --- a/storage/b4ee45c0118c7e131bf7e8b0e6abf40e18ae60b9e1baed178be78371c9f5b060.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder provides operations to call the clearFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/clearFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears all the filters currently applied on the table. -// 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/table-clearfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears all the filters currently applied on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b6a02a5dfe133d9223f0a3d34f0c4318005366e07afff0247bb6f5cda70a7044.go b/storage/b6a02a5dfe133d9223f0a3d34f0c4318005366e07afff0247bb6f5cda70a7044.go deleted file mode 100644 index 243b6ff355..0000000000 --- a/storage/b6a02a5dfe133d9223f0a3d34f0c4318005366e07afff0247bb6f5cda70a7044.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/b74153eca99531735643bee6c3caa44c65564effa03af550e4c20cef63696a43.go b/storage/b74153eca99531735643bee6c3caa44c65564effa03af550e4c20cef63696a43.go deleted file mode 100644 index db38fd8c80..0000000000 --- a/storage/b74153eca99531735643bee6c3caa44c65564effa03af550e4c20cef63696a43.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b84b4ad76d61155017170e056b09a29f22ce84e5333b58e4eb0f544ec0e4db87.go b/storage/b84b4ad76d61155017170e056b09a29f22ce84e5333b58e4eb0f544ec0e4db87.go deleted file mode 100644 index e1693fe80f..0000000000 --- a/storage/b84b4ad76d61155017170e056b09a29f22ce84e5333b58e4eb0f544ec0e4db87.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartSeries entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters represents the formatting of a chart series, which includes fill and line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of a chart series, which includes fill and line formatting. Read-only. -// returns a WorkbookChartSeriesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartSeriesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartSeriesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart series, which includes fill and line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartSeriesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b917dc05a17cda177e2d6e6266600c72a2a53da2bfc07ae01465fc2704983668.go b/storage/b917dc05a17cda177e2d6e6266600c72a2a53da2bfc07ae01465fc2704983668.go deleted file mode 100644 index 5daf3a9a6e..0000000000 --- a/storage/b917dc05a17cda177e2d6e6266600c72a2a53da2bfc07ae01465fc2704983668.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b94b074fdedc87f3abee476351e272a734533c80931272cedc0704eec7950908.go b/storage/b94b074fdedc87f3abee476351e272a734533c80931272cedc0704eec7950908.go deleted file mode 100644 index 1980fbc1a8..0000000000 --- a/storage/b94b074fdedc87f3abee476351e272a734533c80931272cedc0704eec7950908.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["percent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetPercent(val) - } - return nil - } - return res -} -// GetPercent gets the percent property value. The percent property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetPercent()(*int32) { - val, err := m.GetBackingStore().Get("percent") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("percent", m.GetPercent()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPercent sets the percent property value. The percent property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetPercent(value *int32)() { - err := m.GetBackingStore().Set("percent", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPercent()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPercent(value *int32)() -} diff --git a/storage/b9a3ecc17f7dfa48c0717679f946a4a36802e1a53683fbb2c0cc5798872fb849.go b/storage/b9a3ecc17f7dfa48c0717679f946a4a36802e1a53683fbb2c0cc5798872fb849.go deleted file mode 100644 index cc35d707b2..0000000000 --- a/storage/b9a3ecc17f7dfa48c0717679f946a4a36802e1a53683fbb2c0cc5798872fb849.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the totals row of the column. -// returns a WorkbookRangeable 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/tablecolumn-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the totals row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/b9bf50e34df8a0edbc9ca6d78268c856e92c2a85d471146f26d2335c74dbfbd6.go b/storage/b9bf50e34df8a0edbc9ca6d78268c856e92c2a85d471146f26d2335c74dbfbd6.go deleted file mode 100644 index c2d5e743de..0000000000 --- a/storage/b9bf50e34df8a0edbc9ca6d78268c856e92c2a85d471146f26d2335c74dbfbd6.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria1 gets the criteria1 property value. The criteria1 property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetCriteria1()(*string) { - val, err := m.GetBackingStore().Get("criteria1") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetCriteria2 gets the criteria2 property value. The criteria2 property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetCriteria2()(*string) { - val, err := m.GetBackingStore().Get("criteria2") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria1(val) - } - return nil - } - res["criteria2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria2(val) - } - return nil - } - res["oper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOper(val) - } - return nil - } - return res -} -// GetOper gets the oper property value. The oper property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetOper()(*string) { - val, err := m.GetBackingStore().Get("oper") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("criteria1", m.GetCriteria1()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("criteria2", m.GetCriteria2()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("oper", m.GetOper()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria1 sets the criteria1 property value. The criteria1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetCriteria1(value *string)() { - err := m.GetBackingStore().Set("criteria1", value) - if err != nil { - panic(err) - } -} -// SetCriteria2 sets the criteria2 property value. The criteria2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetCriteria2(value *string)() { - err := m.GetBackingStore().Set("criteria2", value) - if err != nil { - panic(err) - } -} -// SetOper sets the oper property value. The oper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetOper(value *string)() { - err := m.GetBackingStore().Set("oper", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria1()(*string) - GetCriteria2()(*string) - GetOper()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria1(value *string)() - SetCriteria2(value *string)() - SetOper(value *string)() -} diff --git a/storage/b9edbc6e1e95b31233f51222262b8ab7ff7e9852deeb0d65968ea19d3860f932.go b/storage/b9edbc6e1e95b31233f51222262b8ab7ff7e9852deeb0d65968ea19d3860f932.go deleted file mode 100644 index 31cec73388..0000000000 --- a/storage/b9edbc6e1e95b31233f51222262b8ab7ff7e9852deeb0d65968ea19d3860f932.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters encapsulates the format properties chart point. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartPointFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get encapsulates the format properties chart point. Read-only. -// returns a WorkbookChartPointFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartPointFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation encapsulates the format properties chart point. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ba9cd5011a696d67f011708c91d8176edbc4b80ae3b7e30f02c6889eeb44561c.go b/storage/ba9cd5011a696d67f011708c91d8176edbc4b80ae3b7e30f02c6889eeb44561c.go deleted file mode 100644 index 6d943d9fbe..0000000000 --- a/storage/ba9cd5011a696d67f011708c91d8176edbc4b80ae3b7e30f02c6889eeb44561c.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartLegend entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetQueryParameters represents the formatting of a chart legend, which includes fill and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/legend/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartLegendFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartLegendFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of a chart legend, which includes fill and font formatting. Read-only. -// returns a WorkbookChartLegendFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartLegendFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of a chart legend, which includes fill and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemLegendFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/baef53cee45eec9bbfcb212a658d893ed6b9212f6554b5969786db867baccd8b.go b/storage/baef53cee45eec9bbfcb212a658d893ed6b9212f6554b5969786db867baccd8b.go deleted file mode 100644 index e10a68e7b7..0000000000 --- a/storage/baef53cee45eec9bbfcb212a658d893ed6b9212f6554b5969786db867baccd8b.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get gets a row based on its position in the collection. -// returns a WorkbookTableRowable 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/tablerowcollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation gets a row based on its position in the collection. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/bb602f6b76f2e9b560992cc8714c9b8321ef735bd7589baec05d6762c088e174.go b/storage/bb602f6b76f2e9b560992cc8714c9b8321ef735bd7589baec05d6762c088e174.go deleted file mode 100644 index 1ff7a8e8b9..0000000000 --- a/storage/bb602f6b76f2e9b560992cc8714c9b8321ef735bd7589baec05d6762c088e174.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetQueryParameters returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property majorGridlines for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// Patch update the navigation property majorGridlines in storage -// returns a WorkbookChartGridlinesable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable), nil -} -// ToDeleteRequestInformation delete navigation property majorGridlines for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns a gridlines object that represents the major gridlines for the specified axis. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property majorGridlines in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/bd0c8815baf0006c24cc125d320ca35784de6e34c8fffa344a5f5bddead71ecd.go b/storage/bd0c8815baf0006c24cc125d320ca35784de6e34c8fffa344a5f5bddead71ecd.go deleted file mode 100644 index ae5646c8b0..0000000000 --- a/storage/bd0c8815baf0006c24cc125d320ca35784de6e34c8fffa344a5f5bddead71ecd.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/bd7dab768a7cfdd49ac345fe92c40724f70796cf3ced14af678c488377208020.go b/storage/bd7dab768a7cfdd49ac345fe92c40724f70796cf3ced14af678c488377208020.go deleted file mode 100644 index f0c4d32239..0000000000 --- a/storage/bd7dab768a7cfdd49ac345fe92c40724f70796cf3ced14af678c488377208020.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder provides operations to call the apply method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/apply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post apply the given filter criteria on the given column. -// 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/filter-apply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation apply the given filter criteria on the given column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/bfc63dd2d6ef87057c9b2432312d4531f4835878a9eac4c76ede3939d598b747.go b/storage/bfc63dd2d6ef87057c9b2432312d4531f4835878a9eac4c76ede3939d598b747.go deleted file mode 100644 index 314a02c496..0000000000 --- a/storage/bfc63dd2d6ef87057c9b2432312d4531f4835878a9eac4c76ede3939d598b747.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the column. -// returns a WorkbookRangeable 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/tablecolumn-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/bfdae8ac41acb38a01276fae14c310bd39c23bf1387d1022df907b7230153e06.go b/storage/bfdae8ac41acb38a01276fae14c310bd39c23bf1387d1022df907b7230153e06.go deleted file mode 100644 index 371b4e08bf..0000000000 --- a/storage/bfdae8ac41acb38a01276fae14c310bd39c23bf1387d1022df907b7230153e06.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with totals row of the table. -// returns a WorkbookRangeable 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/table-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with totals row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c08f1980ca678bca17d05714d480d1b38bfe41dcd9f92690d7443824a9d8ce32.go b/storage/c08f1980ca678bca17d05714d480d1b38bfe41dcd9f92690d7443824a9d8ce32.go deleted file mode 100644 index ed81dd52fa..0000000000 --- a/storage/c08f1980ca678bca17d05714d480d1b38bfe41dcd9f92690d7443824a9d8ce32.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartDataLabels entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetQueryParameters represents the format of chart data labels, which includes fill and font formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartDataLabelFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the format of chart data labels, which includes fill and font formatting. Read-only. -// returns a WorkbookChartDataLabelFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartDataLabelFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartDataLabelFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the format of chart data labels, which includes fill and font formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartDataLabelFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c0f86a0f5451b4cba40dc1f10d0f3e2ec8a6efd2381ca6a6d2b07c1d5911ae96.go b/storage/c0f86a0f5451b4cba40dc1f10d0f3e2ec8a6efd2381ca6a6d2b07c1d5911ae96.go deleted file mode 100644 index 1acfd40672..0000000000 --- a/storage/c0f86a0f5451b4cba40dc1f10d0f3e2ec8a6efd2381ca6a6d2b07c1d5911ae96.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/c1d4bb9896f605395f5a414adf35ca960fa3829e4fbe02ba11676db01320be84.go b/storage/c1d4bb9896f605395f5a414adf35ca960fa3829e4fbe02ba11676db01320be84.go deleted file mode 100644 index 26bc0b528f..0000000000 --- a/storage/c1d4bb9896f605395f5a414adf35ca960fa3829e4fbe02ba11676db01320be84.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetCriteria()(*string) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBody) SetCriteria(value *string)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyDynamicFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value *string)() -} diff --git a/storage/c1fb9da5b8596eb052f40295e8ab199595711e285e9a62980f9630b3c9cabed3.go b/storage/c1fb9da5b8596eb052f40295e8ab199595711e285e9a62980f9630b3c9cabed3.go deleted file mode 100644 index 87609e5a77..0000000000 --- a/storage/c1fb9da5b8596eb052f40295e8ab199595711e285e9a62980f9630b3c9cabed3.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetQueryParameters represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/title/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes, such as font name, font size, color, etc. of chart axis title object. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c239d8f834431558c11b3bea6b3d3516b1eb7dd534c399b4c9c3eacd86b2f334.go b/storage/c239d8f834431558c11b3bea6b3d3516b1eb7dd534c399b4c9c3eacd86b2f334.go deleted file mode 100644 index a083cba0d5..0000000000 --- a/storage/c239d8f834431558c11b3bea6b3d3516b1eb7dd534c399b4c9c3eacd86b2f334.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartTitleFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c3db07e9686023e8ea732b8030cbe27cb392a847b2104bce57cac2031de67a08.go b/storage/c3db07e9686023e8ea732b8030cbe27cb392a847b2104bce57cac2031de67a08.go deleted file mode 100644 index b53818b601..0000000000 --- a/storage/c3db07e9686023e8ea732b8030cbe27cb392a847b2104bce57cac2031de67a08.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageResponseable), nil -} -// GetAsImageGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) GetAsImageGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c592ab7f18355763f88b10fe2490461fb0e988a3139ccc90af2615c08947008c.go b/storage/c592ab7f18355763f88b10fe2490461fb0e988a3139ccc90af2615c08947008c.go deleted file mode 100644 index 22f971c34e..0000000000 --- a/storage/c592ab7f18355763f88b10fe2490461fb0e988a3139ccc90af2615c08947008c.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c6a4f543c6a0a8e6968d3cc493d4a17dc0e367a180f170fb3dfb6e6f6e80e9bf.go b/storage/c6a4f543c6a0a8e6968d3cc493d4a17dc0e367a180f170fb3dfb6e6f6e80e9bf.go deleted file mode 100644 index 777e1a6195..0000000000 --- a/storage/c6a4f543c6a0a8e6968d3cc493d4a17dc0e367a180f170fb3dfb6e6f6e80e9bf.go +++ /dev/null @@ -1,122 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder provides operations to call the getActivitiesByInterval method. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters invoke function getActivitiesByInterval -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, endDateTime *string, interval *string, startDateTime *string)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(startDateTime='{startDateTime}',endDateTime='{endDateTime}',interval='{interval}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if endDateTime != nil { - m.BaseRequestBuilder.PathParameters["endDateTime"] = *endDateTime - } - if interval != nil { - m.BaseRequestBuilder.PathParameters["interval"] = *interval - } - if startDateTime != nil { - m.BaseRequestBuilder.PathParameters["startDateTime"] = *startDateTime - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) -} -// Get invoke function getActivitiesByInterval -// Deprecated: This method is obsolete. Use GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse instead. -// returns a FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalResponseable), nil -} -// GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse invoke function getActivitiesByInterval -// returns a FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) GetAsGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalGetResponseable), nil -} -// ToGetRequestInformation invoke function getActivitiesByInterval -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c6bd93ce2fd27ee5671e5038090d20335d3201762f1c936dc47df8db30d0f5f8.go b/storage/c6bd93ce2fd27ee5671e5038090d20335d3201762f1c936dc47df8db30d0f5f8.go deleted file mode 100644 index 8ac00103d3..0000000000 --- a/storage/c6bd93ce2fd27ee5671e5038090d20335d3201762f1c936dc47df8db30d0f5f8.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder provides operations to manage the font property of the microsoft.graph.workbookChartAreaFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetQueryParameters represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format/font{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property font for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// Patch update the navigation property font in storage -// returns a WorkbookChartFontable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFontFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable), nil -} -// ToDeleteRequestInformation delete navigation property font for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the font attributes (font name, font size, color, etc.) for the current object. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property font in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFontable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c79cb3dea4dbffca08215e80abca60ffcc5c365288390d9a677c40a61b8eccbd.go b/storage/c79cb3dea4dbffca08215e80abca60ffcc5c365288390d9a677c40a61b8eccbd.go deleted file mode 100644 index 0a452ac1a4..0000000000 --- a/storage/c79cb3dea4dbffca08215e80abca60ffcc5c365288390d9a677c40a61b8eccbd.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder provides operations to call the refresh method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/{workbookPivotTable%2Did}/refresh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderInternal(urlParams, requestAdapter) -} -// Post refreshes the PivotTable. -// 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/workbookpivottable-refresh?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation refreshes the PivotTable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesItemRefreshRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c7dc0395ba7839a25c4f90cf674446e109af476d5e9ba97b6b05670600824234.go b/storage/c7dc0395ba7839a25c4f90cf674446e109af476d5e9ba97b6b05670600824234.go deleted file mode 100644 index 1c5682deb0..0000000000 --- a/storage/c7dc0395ba7839a25c4f90cf674446e109af476d5e9ba97b6b05670600824234.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c80d89f504c9403dea8577987c922a203ca5f2e2e6ce8b8e51a45d769a4c9720.go b/storage/c80d89f504c9403dea8577987c922a203ca5f2e2e6ce8b8e51a45d769a4c9720.go deleted file mode 100644 index e074a6eda5..0000000000 --- a/storage/c80d89f504c9403dea8577987c922a203ca5f2e2e6ce8b8e51a45d769a4c9720.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMajorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/c9c515e2d1f1e7346a3d2499b629883e79f94dd1179d4b3351ea585576154936.go b/storage/c9c515e2d1f1e7346a3d2499b629883e79f94dd1179d4b3351ea585576154936.go deleted file mode 100644 index 97781c56eb..0000000000 --- a/storage/c9c515e2d1f1e7346a3d2499b629883e79f94dd1179d4b3351ea585576154936.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetQueryParameters encapsulates the format properties for the chart area. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fill provides operations to manage the fill property of the microsoft.graph.workbookChartAreaFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) Fill()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAreaFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get encapsulates the format properties for the chart area. Read-only. -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAreaFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAreaFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation encapsulates the format properties for the chart area. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAreaFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ca407c03c9deeaf601ab894b567e8e84d07103b6a61f31cff0ced774b7f1828d.go b/storage/ca407c03c9deeaf601ab894b567e8e84d07103b6a61f31cff0ced774b7f1828d.go deleted file mode 100644 index ef30cbbf27..0000000000 --- a/storage/ca407c03c9deeaf601ab894b567e8e84d07103b6a61f31cff0ced774b7f1828d.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/caaea12334cd13795ff2b643bf1beeeae81621cac4a1b4f68c6b95177f62444d.go b/storage/caaea12334cd13795ff2b643bf1beeeae81621cac4a1b4f68c6b95177f62444d.go deleted file mode 100644 index a2ecc54ba0..0000000000 --- a/storage/caaea12334cd13795ff2b643bf1beeeae81621cac4a1b4f68c6b95177f62444d.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/minorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisMinorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/cc0820fc0d505bc7895efe739e78d00d83f46dc46b336616754de41ec9e65f73.go b/storage/cc0820fc0d505bc7895efe739e78d00d83f46dc46b336616754de41ec9e65f73.go deleted file mode 100644 index b853a27fe8..0000000000 --- a/storage/cc0820fc0d505bc7895efe739e78d00d83f46dc46b336616754de41ec9e65f73.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["index"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetIndex(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIndex gets the index property value. The index property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetIndex()(*int32) { - val, err := m.GetBackingStore().Get("index") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("index", m.GetIndex()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIndex sets the index property value. The index property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) SetIndex(value *int32)() { - err := m.GetBackingStore().Set("index", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIndex()(*int32) - GetName()(*string) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIndex(value *int32)() - SetName(value *string)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/cc21ee5ec5766aeaa122edd7be7e05c9b83d8f6cf1ed0903c498727f77d41b63.go b/storage/cc21ee5ec5766aeaa122edd7be7e05c9b83d8f6cf1ed0903c498727f77d41b63.go deleted file mode 100644 index 9a6885df47..0000000000 --- a/storage/cc21ee5ec5766aeaa122edd7be7e05c9b83d8f6cf1ed0903c498727f77d41b63.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/cd2e837c7616ecbf08d7cb2c77901cdf5534c047e464e2b5995f95fd759fdcaf.go b/storage/cd2e837c7616ecbf08d7cb2c77901cdf5534c047e464e2b5995f95fd759fdcaf.go deleted file mode 100644 index 644ed8494e..0000000000 --- a/storage/cd2e837c7616ecbf08d7cb2c77901cdf5534c047e464e2b5995f95fd759fdcaf.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthWithHeightWithFittingModeGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/cf2e94479890ea1ea67ea0839940537a3d056f941cfecbd0e98182a53495a858.go b/storage/cf2e94479890ea1ea67ea0839940537a3d056f941cfecbd0e98182a53495a858.go deleted file mode 100644 index a16c06c1f0..0000000000 --- a/storage/cf2e94479890ea1ea67ea0839940537a3d056f941cfecbd0e98182a53495a858.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder provides operations to call the applyValuesFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyValuesFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyValuesFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/cff8c43e6c664238d98e593fe51a833b69c40b3bebcc18ba5e67032df0d58fc2.go b/storage/cff8c43e6c664238d98e593fe51a833b69c40b3bebcc18ba5e67032df0d58fc2.go deleted file mode 100644 index 5b497aa5d8..0000000000 --- a/storage/cff8c43e6c664238d98e593fe51a833b69c40b3bebcc18ba5e67032df0d58fc2.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartAxisFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d0e37d463fb18bf4dab7ac0cf35bf17625d23168365e7646b76eed54d5c3ae2a.go b/storage/d0e37d463fb18bf4dab7ac0cf35bf17625d23168365e7646b76eed54d5c3ae2a.go deleted file mode 100644 index c484a548cd..0000000000 --- a/storage/d0e37d463fb18bf4dab7ac0cf35bf17625d23168365e7646b76eed54d5c3ae2a.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters the collection of columns that are required by this content type. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/{columnLink%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property columnLinks for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the collection of columns that are required by this content type. -// returns a ColumnLinkable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnLinkFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable), nil -} -// Patch update the navigation property columnLinks in storage -// returns a ColumnLinkable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnLinkFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable), nil -} -// ToDeleteRequestInformation delete navigation property columnLinks for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the collection of columns that are required by this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property columnLinks in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d1725531fb72ca35ee389d0044c93c7d718f7b46c0e44b5362966dfd923dcb3e.go b/storage/d1725531fb72ca35ee389d0044c93c7d718f7b46c0e44b5362966dfd923dcb3e.go deleted file mode 100644 index 64165d124e..0000000000 --- a/storage/d1725531fb72ca35ee389d0044c93c7d718f7b46c0e44b5362966dfd923dcb3e.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder provides operations to call the setSolidColor method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/setSolidColor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sets the fill formatting of a chart element to a uniform color. -// 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/chartfill-setsolidcolor?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation sets the fill formatting of a chart element to a uniform color. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d1f506b456b0533829a5ac0e39147c9181b16210872f149740f253f68b4f1db6.go b/storage/d1f506b456b0533829a5ac0e39147c9181b16210872f149740f253f68b4f1db6.go deleted file mode 100644 index b12fcea1c9..0000000000 --- a/storage/d1f506b456b0533829a5ac0e39147c9181b16210872f149740f253f68b4f1db6.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartDataLabelFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetQueryParameters represents the fill format of the current chart data label. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/dataLabels/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of the current chart data label. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of the current chart data label. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemDataLabelsFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d2434aae57c56d32a4d6d231d61336e02fbae0fb09b31bf4ec30c5ffe984bc99.go b/storage/d2434aae57c56d32a4d6d231d61336e02fbae0fb09b31bf4ec30c5ffe984bc99.go deleted file mode 100644 index e9796ec671..0000000000 --- a/storage/d2434aae57c56d32a4d6d231d61336e02fbae0fb09b31bf4ec30c5ffe984bc99.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d2524870c574d6f1cf1c8c484a76b5ab407e5fb54f9bfe7a31d05684d907c061.go b/storage/d2524870c574d6f1cf1c8c484a76b5ab407e5fb54f9bfe7a31d05684d907c061.go deleted file mode 100644 index b8d8024682..0000000000 --- a/storage/d2524870c574d6f1cf1c8c484a76b5ab407e5fb54f9bfe7a31d05684d907c061.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a WorkbookFilterCriteriaable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) GetCriteria()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterCriteriaFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBody) SetCriteria(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterCriteriaable)() -} diff --git a/storage/d2d8f9f045d04a5c853420fd893602d6304623b20a0eb8326e9c87ee7a550d45.go b/storage/d2d8f9f045d04a5c853420fd893602d6304623b20a0eb8326e9c87ee7a550d45.go deleted file mode 100644 index ee499c9e5f..0000000000 --- a/storage/d2d8f9f045d04a5c853420fd893602d6304623b20a0eb8326e9c87ee7a550d45.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndCell gets the endCell property value. The endCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetStartCell gets the startCell property value. The startCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endCell", m.GetEndCell()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startCell", m.GetStartCell()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndCell sets the endCell property value. The endCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endCell", value) - if err != nil { - panic(err) - } -} -// SetStartCell sets the startCell property value. The startCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBody) SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startCell", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSetPositionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/d3370e2d33a157db3272736e7f534cb4400e025e35648c468ebb83d56564126f.go b/storage/d3370e2d33a157db3272736e7f534cb4400e025e35648c468ebb83d56564126f.go deleted file mode 100644 index fab680f650..0000000000 --- a/storage/d3370e2d33a157db3272736e7f534cb4400e025e35648c468ebb83d56564126f.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder provides operations to call the applyBottomItemsFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyBottomItemsFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyBottomItemsFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyBottomItemsFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyBottomItemsFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d3b16b9195395ef5ebadfd543f73604fae3b3f89d5ea5ff5d42ff8dbeb88844d.go b/storage/d3b16b9195395ef5ebadfd543f73604fae3b3f89d5ea5ff5d42ff8dbeb88844d.go deleted file mode 100644 index 77c92b8196..0000000000 --- a/storage/d3b16b9195395ef5ebadfd543f73604fae3b3f89d5ea5ff5d42ff8dbeb88844d.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the line format of a chart element. -// 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/chartlineformat-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the line format of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d5776088de2d9873b1a22d5061fc908c678c325573253db227a8bca97315be08.go b/storage/d5776088de2d9873b1a22d5061fc908c678c325573253db227a8bca97315be08.go deleted file mode 100644 index a9358b9833..0000000000 --- a/storage/d5776088de2d9873b1a22d5061fc908c678c325573253db227a8bca97315be08.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartTitle entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d7654ccc28040162e664baf7fe3e94e2687bb297e9a8c97b275c6cfffe655315.go b/storage/d7654ccc28040162e664baf7fe3e94e2687bb297e9a8c97b275c6cfffe655315.go deleted file mode 100644 index 7ad39af0f3..0000000000 --- a/storage/d7654ccc28040162e664baf7fe3e94e2687bb297e9a8c97b275c6cfffe655315.go +++ /dev/null @@ -1,141 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Axes provides operations to manage the axes property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Axes()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexAxesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// DataLabels provides operations to manage the dataLabels property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) DataLabels()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexDataLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get gets a chart based on its position in the collection. -// returns a WorkbookChartable 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/chartcollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// Image provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Image()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImageWithWidth provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) ImageWithWidth(width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, width) -} -// ImageWithWidthWithHeight provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) ImageWithWidthWithHeight(height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, height, width) -} -// ImageWithWidthWithHeightWithFittingMode provides operations to call the image method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) ImageWithWidthWithHeightWithFittingMode(fittingMode *string, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthWithHeightWithFittingModeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, fittingMode, height, width) -} -// Legend provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Legend()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Series provides operations to manage the series property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Series()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSeriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetData provides operations to call the setData method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) SetData()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetDataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SetPosition provides operations to call the setPosition method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) SetPosition()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation gets a chart based on its position in the collection. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookChart entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/d7a10c8f9bda561be423bd11ee7cb6caa1eb55e50612389bd3762909e5a17292.go b/storage/d7a10c8f9bda561be423bd11ee7cb6caa1eb55e50612389bd3762909e5a17292.go deleted file mode 100644 index 78aebc8293..0000000000 --- a/storage/d7a10c8f9bda561be423bd11ee7cb6caa1eb55e50612389bd3762909e5a17292.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property rows for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// Patch update the navigation property rows in storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property rows in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d84bfe9963cfec5c35b5d046901f13ff95664c4dfb8a1628cf707de88718df59.go b/storage/d84bfe9963cfec5c35b5d046901f13ff95664c4dfb8a1628cf707de88718df59.go deleted file mode 100644 index 19d8fb57cb..0000000000 --- a/storage/d84bfe9963cfec5c35b5d046901f13ff95664c4dfb8a1628cf707de88718df59.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder provides operations to call the setPosition method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/setPosition", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post positions the chart relative to cells on the worksheet. -// 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/chart-setposition?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation positions the chart relative to cells on the worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexSetPositionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/d9a7c443663d14a428d1e74e9da206113abb4ca188b3d5a90ca4a4bebfdf3591.go b/storage/d9a7c443663d14a428d1e74e9da206113abb4ca188b3d5a90ca4a4bebfdf3591.go deleted file mode 100644 index 1b3e9d51d9..0000000000 --- a/storage/d9a7c443663d14a428d1e74e9da206113abb4ca188b3d5a90ca4a4bebfdf3591.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/da1d4885ac00dfb71efd945e7efa5227ff193565ebd4e1fece82006ea8a9205d.go b/storage/da1d4885ac00dfb71efd945e7efa5227ff193565ebd4e1fece82006ea8a9205d.go deleted file mode 100644 index 79278909e9..0000000000 --- a/storage/da1d4885ac00dfb71efd945e7efa5227ff193565ebd4e1fece82006ea8a9205d.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder provides operations to manage the title property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/title{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property title for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// Patch update the navigation property title in storage -// returns a WorkbookChartTitleable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartTitleFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable), nil -} -// ToDeleteRequestInformation delete navigation property title for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the title of the specified chart, including the text, visibility, position and formatting of the title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property title in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartTitleable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexTitleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/da508d9b12dc8c896a5464b97cf95c6ef6afc63f29b98ff27b8bc4514087b064.go b/storage/da508d9b12dc8c896a5464b97cf95c6ef6afc63f29b98ff27b8bc4514087b064.go deleted file mode 100644 index bbd44c1161..0000000000 --- a/storage/da508d9b12dc8c896a5464b97cf95c6ef6afc63f29b98ff27b8bc4514087b064.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/da8ea3004262ce4cb1560173bf2d6d7ffcf9a5614444ba60140cba043b472098.go b/storage/da8ea3004262ce4cb1560173bf2d6d7ffcf9a5614444ba60140cba043b472098.go deleted file mode 100644 index c94a869b97..0000000000 --- a/storage/da8ea3004262ce4cb1560173bf2d6d7ffcf9a5614444ba60140cba043b472098.go +++ /dev/null @@ -1,128 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ClearFilters provides operations to call the clearFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) ClearFilters()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexClearFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) Columns()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// ConvertToRange provides operations to call the convertToRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) ConvertToRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get invoke function itemAt -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ReapplyFilters provides operations to call the reapplyFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) ReapplyFilters()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rows provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) Rows()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sort provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) Sort()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation invoke function itemAt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/dbd5bb31bdd1247dcadae88180ca47c8bee211658922e497099b3bdef63d091f.go b/storage/dbd5bb31bdd1247dcadae88180ca47c8bee211658922e497099b3bdef63d091f.go deleted file mode 100644 index 6b3db64a30..0000000000 --- a/storage/dbd5bb31bdd1247dcadae88180ca47c8bee211658922e497099b3bdef63d091f.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the column. -// returns a WorkbookRangeable 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/tablecolumn-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/dbe8665a2de3d66b94dd6ec72690a7e46301f5b3e1d66defa42da0d3ca416385.go b/storage/dbe8665a2de3d66b94dd6ec72690a7e46301f5b3e1d66defa42da0d3ca416385.go deleted file mode 100644 index 5f8fdbff24..0000000000 --- a/storage/dbe8665a2de3d66b94dd6ec72690a7e46301f5b3e1d66defa42da0d3ca416385.go +++ /dev/null @@ -1,207 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder provides operations to manage the worksheets property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetQueryParameters represents a collection of worksheets associated with the workbook. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// CellWithRowWithColumn provides operations to call the cell method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) -} -// Charts provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Charts()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property worksheets for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of worksheets associated with the workbook. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// Names provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Names()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property worksheets in storage -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// PivotTables provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) PivotTables()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Protection provides operations to manage the protection property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Protection()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeWithAddress provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) RangeWithAddress(address *string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, address) -} -// Tables provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) Tables()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property worksheets for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of worksheets associated with the workbook. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property worksheets in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// UsedRange provides operations to call the usedRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) UsedRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// UsedRangeWithValuesOnly provides operations to call the usedRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/dc27f566634c80792a170cb8627cc7d51cb6c80ad2c3b83da21f4a9cef11345f.go b/storage/dc27f566634c80792a170cb8627cc7d51cb6c80ad2c3b83da21f4a9cef11345f.go deleted file mode 100644 index 64ddc0fc7d..0000000000 --- a/storage/dc27f566634c80792a170cb8627cc7d51cb6c80ad2c3b83da21f4a9cef11345f.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder provides operations to call the copyToDefaultContentLocation method. -type FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/copyToDefaultContentLocation", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(urlParams, requestAdapter) -} -// Post copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. -// 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/contenttype-copytodefaultcontentlocation?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation copy a file to a default content location in a content type. The file can then be added as a default file or template via a POST operation. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/dc501f24f3010d61ce322bebe1705a2bc6d6ba60332d69166c0fcc3e7551ccf6.go b/storage/dc501f24f3010d61ce322bebe1705a2bc6d6ba60332d69166c0fcc3e7551ccf6.go deleted file mode 100644 index 90311a0056..0000000000 --- a/storage/dc501f24f3010d61ce322bebe1705a2bc6d6ba60332d69166c0fcc3e7551ccf6.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder provides operations to call the applyCellColorFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCellColorFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyCellColorFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyCellColorFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCellColorFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/dc7707a425905bae5604963258d5c09acb3bbb66aae36c3923e2a6147832cbb9.go b/storage/dc7707a425905bae5604963258d5c09acb3bbb66aae36c3923e2a6147832cbb9.go deleted file mode 100644 index bc9ebb9589..0000000000 --- a/storage/dc7707a425905bae5604963258d5c09acb3bbb66aae36c3923e2a6147832cbb9.go +++ /dev/null @@ -1,177 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder provides operations to manage the categoryAxis property of the microsoft.graph.workbookChartAxes entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetQueryParameters represents the category axis in a chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property categoryAxis for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the category axis in a chart. Read-only. -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// MajorGridlines provides operations to manage the majorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) MajorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MinorGridlines provides operations to manage the minorGridlines property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) MinorGridlines()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property categoryAxis in storage -// returns a WorkbookChartAxisable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable), nil -} -// Title provides operations to manage the title property of the microsoft.graph.workbookChartAxis entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) Title()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisTitleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property categoryAxis for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the category axis in a chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property categoryAxis in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/de907251ea20c135f4ee4dccb29f0ce413030ccede59a5fadaadf8dd5506fcc6.go b/storage/de907251ea20c135f4ee4dccb29f0ce413030ccede59a5fadaadf8dd5506fcc6.go deleted file mode 100644 index 75bffa47d3..0000000000 --- a/storage/de907251ea20c135f4ee4dccb29f0ce413030ccede59a5fadaadf8dd5506fcc6.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/filter{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property filter for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get retrieve the filter applied to the column. Read-only. -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// Patch update the navigation property filter in storage -// returns a WorkbookFilterable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFilterFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable), nil -} -// ToDeleteRequestInformation delete navigation property filter for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property filter in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFilterable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/df8703c751190880f3ecbc058afcec38711a1a57897f7a7dafedfa7d6328ed68.go b/storage/df8703c751190880f3ecbc058afcec38711a1a57897f7a7dafedfa7d6328ed68.go deleted file mode 100644 index e8c10f64df..0000000000 --- a/storage/df8703c751190880f3ecbc058afcec38711a1a57897f7a7dafedfa7d6328ed68.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder provides operations to call the clearFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/clearFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears all the filters currently applied on the table. -// 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/table-clearfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears all the filters currently applied on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/df962da6f4e866ff324cb813312746d67b4d1880be4dbac7cdb284bb034d06ab.go b/storage/df962da6f4e866ff324cb813312746d67b4d1880be4dbac7cdb284bb034d06ab.go deleted file mode 100644 index 7485027687..0000000000 --- a/storage/df962da6f4e866ff324cb813312746d67b4d1880be4dbac7cdb284bb034d06ab.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) GetValue()(*string) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponse) SetValue(value *string)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *string)() -} diff --git a/storage/e05c228d2a381666d6c6cabc38cbf8df5fb995fbe3cb669b2f32911f1c3f1576.go b/storage/e05c228d2a381666d6c6cabc38cbf8df5fb995fbe3cb669b2f32911f1c3f1576.go deleted file mode 100644 index 0bae655d57..0000000000 --- a/storage/e05c228d2a381666d6c6cabc38cbf8df5fb995fbe3cb669b2f32911f1c3f1576.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/valueAxis/majorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesValueAxisMajorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e2adb4b8d4e7f8ba2fd14219c601cac2cb42134b31b1451db37e5d95178c7a04.go b/storage/e2adb4b8d4e7f8ba2fd14219c601cac2cb42134b31b1451db37e5d95178c7a04.go deleted file mode 100644 index 27acc982bd..0000000000 --- a/storage/e2adb4b8d4e7f8ba2fd14219c601cac2cb42134b31b1451db37e5d95178c7a04.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/sort{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property sort for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the sorting for the table. Read-only. -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Patch update the navigation property sort in storage -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// ToDeleteRequestInformation delete navigation property sort for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the sorting for the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property sort in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e4e0a4f50d6e649c62c856c5e220efb6af93f416d14cabc14cce0524aebf98fd.go b/storage/e4e0a4f50d6e649c62c856c5e220efb6af93f416d14cabc14cce0524aebf98fd.go deleted file mode 100644 index 2c10d3c1a7..0000000000 --- a/storage/e4e0a4f50d6e649c62c856c5e220efb6af93f416d14cabc14cce0524aebf98fd.go +++ /dev/null @@ -1,96 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, height *int32, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/item(name='{name}')/image(width={width},height={height})", pathParameters), - } - if height != nil { - m.BaseRequestBuilder.PathParameters["height"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*height), 10) - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderInternal(urlParams, requestAdapter, nil, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthWithHeightGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightResponseable), nil -} -// GetAsImageWithWidthWithHeightGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) GetAsImageWithWidthWithHeightGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e796ff3be9ef7900e3974d58ce28bcd3013a56c0466f3d0f14ba6a504d5a13b3.go b/storage/e796ff3be9ef7900e3974d58ce28bcd3013a56c0466f3d0f14ba6a504d5a13b3.go deleted file mode 100644 index a90d21b871..0000000000 --- a/storage/e796ff3be9ef7900e3974d58ce28bcd3013a56c0466f3d0f14ba6a504d5a13b3.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder provides operations to call the convertToRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/convertToRange", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post converts the table into a normal range of cells. All data is preserved. -// returns a WorkbookRangeable 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/table-converttorange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToPostRequestInformation converts the table into a normal range of cells. All data is preserved. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e83e8ba9db94dc7b6e58f236fbca2fa1e38ddee8de21cdcd19dc66a8811c2fb1.go b/storage/e83e8ba9db94dc7b6e58f236fbca2fa1e38ddee8de21cdcd19dc66a8811c2fb1.go deleted file mode 100644 index 844c33ef18..0000000000 --- a/storage/e83e8ba9db94dc7b6e58f236fbca2fa1e38ddee8de21cdcd19dc66a8811c2fb1.go +++ /dev/null @@ -1,135 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder provides operations to manage the points property of the microsoft.graph.workbookChartSeries entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/itemAt(index={index})/points{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get represents a collection of all points in the series. Read-only. -// returns a WorkbookChartPointCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointCollectionResponseable), nil -} -// Post create new navigation property to points for storage -// returns a WorkbookChartPointable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable), nil -} -// ToGetRequestInformation represents a collection of all points in the series. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to points for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e85526b209ea9c58ef14e6863a9dd773ff0d70e1a513560e6fcdfce36d737dc5.go b/storage/e85526b209ea9c58ef14e6863a9dd773ff0d70e1a513560e6fcdfce36d737dc5.go deleted file mode 100644 index 6215d67d42..0000000000 --- a/storage/e85526b209ea9c58ef14e6863a9dd773ff0d70e1a513560e6fcdfce36d737dc5.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder provides operations to call the applyTopPercentFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyTopPercentFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyTopPercentFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyTopPercentFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyTopPercentFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/e8f2e4f867afbcaf0d01c7f66031b6c299378ffdd389f0545ed428fbc878565e.go b/storage/e8f2e4f867afbcaf0d01c7f66031b6c299378ffdd389f0545ed428fbc878565e.go deleted file mode 100644 index 3bf3339ba4..0000000000 --- a/storage/e8f2e4f867afbcaf0d01c7f66031b6c299378ffdd389f0545ed428fbc878565e.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndCell gets the endCell property value. The endCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startCell"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartCell(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetStartCell gets the startCell property value. The startCell property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startCell") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endCell", m.GetEndCell()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startCell", m.GetStartCell()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndCell sets the endCell property value. The endCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endCell", value) - if err != nil { - panic(err) - } -} -// SetStartCell sets the startCell property value. The startCell property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBody) SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startCell", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameSetPositionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartCell()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartCell(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/e9a0b448c2571732bda5b3965f7f65aa5bfc3bbcae4f8eafd740b2e2fabce9c4.go b/storage/e9a0b448c2571732bda5b3965f7f65aa5bfc3bbcae4f8eafd740b2e2fabce9c4.go deleted file mode 100644 index 2c57dae9a6..0000000000 --- a/storage/e9a0b448c2571732bda5b3965f7f65aa5bfc3bbcae4f8eafd740b2e2fabce9c4.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/minorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMinorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ea73d4aa2b0b5f85d3554755409fb09b7b2229b42a3ec37396901f48a37ac842.go b/storage/ea73d4aa2b0b5f85d3554755409fb09b7b2229b42a3ec37396901f48a37ac842.go deleted file mode 100644 index eb5c2f80c8..0000000000 --- a/storage/ea73d4aa2b0b5f85d3554755409fb09b7b2229b42a3ec37396901f48a37ac842.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody()(*FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) { - m := &FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetContentTypeId gets the contentTypeId property value. The contentTypeId property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) GetContentTypeId()(*string) { - val, err := m.GetBackingStore().Get("contentTypeId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["contentTypeId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentTypeId(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("contentTypeId", m.GetContentTypeId()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetContentTypeId sets the contentTypeId property value. The contentTypeId property -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBody) SetContentTypeId(value *string)() { - err := m.GetBackingStore().Set("contentTypeId", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetContentTypeId()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetContentTypeId(value *string)() -} diff --git a/storage/ed68c8bd3e8b760ea54198d2d46f4a1b85b49bb49c321e67b45bdc8c0f38b52c.go b/storage/ed68c8bd3e8b760ea54198d2d46f4a1b85b49bb49c321e67b45bdc8c0f38b52c.go deleted file mode 100644 index 9b04c6d8e9..0000000000 --- a/storage/ed68c8bd3e8b760ea54198d2d46f4a1b85b49bb49c321e67b45bdc8c0f38b52c.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters the collection of content types that are ancestors of this content type. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/{contentType%2Did1}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the collection of content types that are ancestors of this content type. -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToGetRequestInformation the collection of content types that are ancestors of this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/edeae5d029972a783f06e2d286f756f77f5fd4865e249cd5472ba65b1859cbb7.go b/storage/edeae5d029972a783f06e2d286f756f77f5fd4865e249cd5472ba65b1859cbb7.go deleted file mode 100644 index ae0d40c057..0000000000 --- a/storage/edeae5d029972a783f06e2d286f756f77f5fd4865e249cd5472ba65b1859cbb7.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder provides operations to call the reapplyFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/itemAt(index={index})/reapplyFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies all the filters currently on the table. -// 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/table-reapplyfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies all the filters currently on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexReapplyFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ee47b6a17bf5376adbcf1f4d8dd79d8b51e8eb4d389cf4dc718ecfc1ead6ba3b.go b/storage/ee47b6a17bf5376adbcf1f4d8dd79d8b51e8eb4d389cf4dc718ecfc1ead6ba3b.go deleted file mode 100644 index 94fdf4634a..0000000000 --- a/storage/ee47b6a17bf5376adbcf1f4d8dd79d8b51e8eb4d389cf4dc718ecfc1ead6ba3b.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/itemAt(index={index})/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the header row of the column. -// returns a WorkbookRangeable 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/tablecolumn-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the header row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/efed0873dc9e19bbe8dcde7689c96fc55d6ac8167a4ea3ab361dcc5898ca7450.go b/storage/efed0873dc9e19bbe8dcde7689c96fc55d6ac8167a4ea3ab361dcc5898ca7450.go deleted file mode 100644 index 207416ee84..0000000000 --- a/storage/efed0873dc9e19bbe8dcde7689c96fc55d6ac8167a4ea3ab361dcc5898ca7450.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria1 gets the criteria1 property value. The criteria1 property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetCriteria1()(*string) { - val, err := m.GetBackingStore().Get("criteria1") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetCriteria2 gets the criteria2 property value. The criteria2 property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetCriteria2()(*string) { - val, err := m.GetBackingStore().Get("criteria2") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria1(val) - } - return nil - } - res["criteria2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCriteria2(val) - } - return nil - } - res["oper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetOper(val) - } - return nil - } - return res -} -// GetOper gets the oper property value. The oper property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) GetOper()(*string) { - val, err := m.GetBackingStore().Get("oper") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("criteria1", m.GetCriteria1()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("criteria2", m.GetCriteria2()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("oper", m.GetOper()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria1 sets the criteria1 property value. The criteria1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetCriteria1(value *string)() { - err := m.GetBackingStore().Set("criteria1", value) - if err != nil { - panic(err) - } -} -// SetCriteria2 sets the criteria2 property value. The criteria2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetCriteria2(value *string)() { - err := m.GetBackingStore().Set("criteria2", value) - if err != nil { - panic(err) - } -} -// SetOper sets the oper property value. The oper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBody) SetOper(value *string)() { - err := m.GetBackingStore().Set("oper", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria1()(*string) - GetCriteria2()(*string) - GetOper()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria1(value *string)() - SetCriteria2(value *string)() - SetOper(value *string)() -} diff --git a/storage/eff7cd79afe09c7cf5bdd820f83e80196c8dc12139ab1b8df81bb12607fb9918.go b/storage/eff7cd79afe09c7cf5bdd820f83e80196c8dc12139ab1b8df81bb12607fb9918.go deleted file mode 100644 index bd76566cf7..0000000000 --- a/storage/eff7cd79afe09c7cf5bdd820f83e80196c8dc12139ab1b8df81bb12607fb9918.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\items\{listItem-id}\createdByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f10d76a8a634b2a955166465f56ca4c3d8a3ae723da8b28d8510b48e3262a2e3.go b/storage/f10d76a8a634b2a955166465f56ca4c3d8a3ae723da8b28d8510b48e3262a2e3.go deleted file mode 100644 index d7f7f7f5f9..0000000000 --- a/storage/f10d76a8a634b2a955166465f56ca4c3d8a3ae723da8b28d8510b48e3262a2e3.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder provides operations to call the applyCustomFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyCustomFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyCustomFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyCustomFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyCustomFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f1452f0b8a1481899f905f65b1685c411b5c23603b7aa18ebee70022d2cca5ed.go b/storage/f1452f0b8a1481899f905f65b1685c411b5c23603b7aa18ebee70022d2cca5ed.go deleted file mode 100644 index 5ba6ec80e2..0000000000 --- a/storage/f1452f0b8a1481899f905f65b1685c411b5c23603b7aa18ebee70022d2cca5ed.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the table. -// returns a WorkbookRangeable 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/table-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f14c77588975f1723e03fab9c08fe8545780ac802f1a1ec03fe6b99c88b89b15.go b/storage/f14c77588975f1723e03fab9c08fe8545780ac802f1a1ec03fe6b99c88b89b15.go deleted file mode 100644 index a67cc32bf6..0000000000 --- a/storage/f14c77588975f1723e03fab9c08fe8545780ac802f1a1ec03fe6b99c88b89b15.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters represents chart line formatting. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format/line{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property line for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents chart line formatting. Read-only. -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// Patch update the navigation property line in storage -// returns a WorkbookChartLineFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLineFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable), nil -} -// ToDeleteRequestInformation delete navigation property line for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents chart line formatting. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property line in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLineFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f19e6c46e886c7fe2a08dbd1ca12adf4dd965f9192327b190d06c46ff28accf4.go b/storage/f19e6c46e886c7fe2a08dbd1ca12adf4dd965f9192327b190d06c46ff28accf4.go deleted file mode 100644 index 30acc0eb30..0000000000 --- a/storage/f19e6c46e886c7fe2a08dbd1ca12adf4dd965f9192327b190d06c46ff28accf4.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder provides operations to manage the legend property of the microsoft.graph.workbookChart entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetQueryParameters represents the legend for the chart. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/itemAt(index={index})/legend{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property legend for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the legend for the chart. Read-only. -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// Patch update the navigation property legend in storage -// returns a WorkbookChartLegendable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartLegendFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable), nil -} -// ToDeleteRequestInformation delete navigation property legend for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the legend for the chart. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property legend in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartLegendable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexLegendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f1f76500ad1e83f41dcc6e1754d754474cbf33676af7d2931fefb589f09527a8.go b/storage/f1f76500ad1e83f41dcc6e1754d754474cbf33676af7d2931fefb589f09527a8.go deleted file mode 100644 index 1d99f9f989..0000000000 --- a/storage/f1f76500ad1e83f41dcc6e1754d754474cbf33676af7d2931fefb589f09527a8.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters the worksheet containing the current table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current table. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f3397319ae353814fea364f4abc8f62cd3abf6770681ceb54612c737bd44cd9a.go b/storage/f3397319ae353814fea364f4abc8f62cd3abf6770681ceb54612c737bd44cd9a.go deleted file mode 100644 index 5a1867b0c5..0000000000 --- a/storage/f3397319ae353814fea364f4abc8f62cd3abf6770681ceb54612c737bd44cd9a.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder provides operations to call the applyValuesFilter method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/filter/applyValuesFilter", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action applyValuesFilter -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action applyValuesFilter -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemFilterApplyValuesFilterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f4197dfaacc3dba30daad70cf07e296f479585e15959a34ec44dc816c1dbcab1.go b/storage/f4197dfaacc3dba30daad70cf07e296f479585e15959a34ec44dc816c1dbcab1.go deleted file mode 100644 index 464795bbb1..0000000000 --- a/storage/f4197dfaacc3dba30daad70cf07e296f479585e15959a34ec44dc816c1dbcab1.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f49e28d71c4d6dbcc31c510f55f89734da5003154b680f5081e374c3c8da7c91.go b/storage/f49e28d71c4d6dbcc31c510f55f89734da5003154b680f5081e374c3c8da7c91.go deleted file mode 100644 index 40c4601dc6..0000000000 --- a/storage/f49e28d71c4d6dbcc31c510f55f89734da5003154b680f5081e374c3c8da7c91.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clear the fill color of a chart element. -// 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/chartfill-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clear the fill color of a chart element. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f53eb4e0aa03ddc683ba3a77c2025abe409c977e4d5fc115fa5c3f1ecd3e5c5f.go b/storage/f53eb4e0aa03ddc683ba3a77c2025abe409c977e4d5fc115fa5c3f1ecd3e5c5f.go deleted file mode 100644 index bf2b946bed..0000000000 --- a/storage/f53eb4e0aa03ddc683ba3a77c2025abe409c977e4d5fc115fa5c3f1ecd3e5c5f.go +++ /dev/null @@ -1,93 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder provides operations to call the image method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, width *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/image(width={width})", pathParameters), - } - if width != nil { - m.BaseRequestBuilder.PathParameters["width"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*width), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function image -// Deprecated: This method is obsolete. Use GetAsImageWithWidthGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthResponseable), nil -} -// GetAsImageWithWidthGetResponse invoke function image -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) GetAsImageWithWidthGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthGetResponseable), nil -} -// ToGetRequestInformation invoke function image -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageWithWidthRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f640b88ba38f86c612c7c6a897f786f275dd4cf13a8aee7f6bf06538b6c669ed.go b/storage/f640b88ba38f86c612c7c6a897f786f275dd4cf13a8aee7f6bf06538b6c669ed.go deleted file mode 100644 index c58ad05d8e..0000000000 --- a/storage/f640b88ba38f86c612c7c6a897f786f275dd4cf13a8aee7f6bf06538b6c669ed.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexImageWithWidthGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/f6ca95755150ef899dcbef7a35d84b691c6e7c7fdd40878b54ef0a17b8eb3b0e.go b/storage/f6ca95755150ef899dcbef7a35d84b691c6e7c7fdd40878b54ef0a17b8eb3b0e.go deleted file mode 100644 index 89eb73b0e3..0000000000 --- a/storage/f6ca95755150ef899dcbef7a35d84b691c6e7c7fdd40878b54ef0a17b8eb3b0e.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder provides operations to manage the fill property of the microsoft.graph.workbookChartPointFormat entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetQueryParameters represents the fill format of a chart, which includes background formatting information. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/{workbookChartPoint%2Did}/format/fill{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fill for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the fill format of a chart, which includes background formatting information. Read-only. -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// Patch update the navigation property fill in storage -// returns a WorkbookChartFillable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFillFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable), nil -} -// SetSolidColor provides operations to call the setSolidColor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) SetSolidColor()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillSetSolidColorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property fill for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the fill format of a chart, which includes background formatting information. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fill in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartFillable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f6db9374ffc8869398ceea266b28f1918bca444bf0c610e84ec1d6f01ebe30dd.go b/storage/f6db9374ffc8869398ceea266b28f1918bca444bf0c610e84ec1d6f01ebe30dd.go deleted file mode 100644 index 4072165525..0000000000 --- a/storage/f6db9374ffc8869398ceea266b28f1918bca444bf0c610e84ec1d6f01ebe30dd.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameImageWithWidthWithHeightWithFittingModeGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/f8f8d29dcbc15d259401daf1c19020adf7634b12ef9a2a593fd1b5ba6fb5df9a.go b/storage/f8f8d29dcbc15d259401daf1c19020adf7634b12ef9a2a593fd1b5ba6fb5df9a.go deleted file mode 100644 index 00795125e6..0000000000 --- a/storage/f8f8d29dcbc15d259401daf1c19020adf7634b12ef9a2a593fd1b5ba6fb5df9a.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new column to the table. -// returns a WorkbookTableColumnable 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/tablecolumncollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToPostRequestInformation adds a new column to the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f91e02dc77fbd6767462cc30752540c33ad831147b7e9d97900e4d9d66f414dc.go b/storage/f91e02dc77fbd6767462cc30752540c33ad831147b7e9d97900e4d9d66f414dc.go deleted file mode 100644 index 8ec3831804..0000000000 --- a/storage/f91e02dc77fbd6767462cc30752540c33ad831147b7e9d97900e4d9d66f414dc.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartGridlines entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetQueryParameters represents the formatting of chart gridlines. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/categoryAxis/majorGridlines/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the formatting of chart gridlines. Read-only. -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// Line provides operations to manage the line property of the microsoft.graph.workbookChartGridlinesFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) Line()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatLineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property format in storage -// returns a WorkbookChartGridlinesFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartGridlinesFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart gridlines. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartGridlinesFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesCategoryAxisMajorGridlinesFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f92a403c1897f6ce8a8c9fcba018ef66ac71528fc5ec754ffc97636e773f4853.go b/storage/f92a403c1897f6ce8a8c9fcba018ef66ac71528fc5ec754ffc97636e773f4853.go deleted file mode 100644 index b91f9f83f4..0000000000 --- a/storage/f92a403c1897f6ce8a8c9fcba018ef66ac71528fc5ec754ffc97636e773f4853.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookChartAxisTitle entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetQueryParameters represents the formatting of chart axis title. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/axes/seriesAxis/title/format{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property format for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Font provides operations to manage the font property of the microsoft.graph.workbookChartAxisTitleFormat entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) Font()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents the formatting of chart axis title. Read-only. -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// Patch update the navigation property format in storage -// returns a WorkbookChartAxisTitleFormatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartAxisTitleFormatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable), nil -} -// ToDeleteRequestInformation delete navigation property format for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the formatting of chart axis title. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property format in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartAxisTitleFormatable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAxesSeriesAxisTitleFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/f9afbb82dabb7f6bdb06129186575bdb6dfb1461900625426363ee4f3f9b1c15.go b/storage/f9afbb82dabb7f6bdb06129186575bdb6dfb1461900625426363ee4f3f9b1c15.go deleted file mode 100644 index 1fca386a72..0000000000 --- a/storage/f9afbb82dabb7f6bdb06129186575bdb6dfb1461900625426363ee4f3f9b1c15.go +++ /dev/null @@ -1,101 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Filter provides operations to manage the filter property of the microsoft.graph.workbookTableColumn entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) Filter()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get gets a column based on its position in the collection. -// returns a WorkbookTableColumnable 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/tablecolumncollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation gets a column based on its position in the collection. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/fa71e9217dc0270131bce08d29d191422e536c7f480f30b50b7d6a0fb7cf7bd0.go b/storage/fa71e9217dc0270131bce08d29d191422e536c7f480f30b50b7d6a0fb7cf7bd0.go deleted file mode 100644 index 0d2789af46..0000000000 --- a/storage/fa71e9217dc0270131bce08d29d191422e536c7f480f30b50b7d6a0fb7cf7bd0.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["percent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetPercent(val) - } - return nil - } - return res -} -// GetPercent gets the percent property value. The percent property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) GetPercent()(*int32) { - val, err := m.GetBackingStore().Get("percent") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("percent", m.GetPercent()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPercent sets the percent property value. The percent property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBody) SetPercent(value *int32)() { - err := m.GetBackingStore().Set("percent", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyBottomPercentFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPercent()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPercent(value *int32)() -} diff --git a/storage/fb99e42888de56a8df50c50e724ab0c7cd681ba85ecba7abbbbda1bf8bb2a5dd.go b/storage/fb99e42888de56a8df50c50e724ab0c7cd681ba85ecba7abbbbda1bf8bb2a5dd.go deleted file mode 100644 index 981cbcbaca..0000000000 --- a/storage/fb99e42888de56a8df50c50e724ab0c7cd681ba85ecba7abbbbda1bf8bb2a5dd.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters column order information in a content type. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Get column order information in a content type. -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation column order information in a content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/fba71db00b08c77313fd89e612df1a21db3dd1f1839b1cff5f0da6b4cdae19f4.go b/storage/fba71db00b08c77313fd89e612df1a21db3dd1f1839b1cff5f0da6b4cdae19f4.go deleted file mode 100644 index 12a90bc7e0..0000000000 --- a/storage/fba71db00b08c77313fd89e612df1a21db3dd1f1839b1cff5f0da6b4cdae19f4.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterApplyValuesFilterPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/fd6b02bb40787a1866051d8a9a7a88c317268792a0e941a6da086f37fd863815.go b/storage/fd6b02bb40787a1866051d8a9a7a88c317268792a0e941a6da086f37fd863815.go deleted file mode 100644 index 90b739977f..0000000000 --- a/storage/fd6b02bb40787a1866051d8a9a7a88c317268792a0e941a6da086f37fd863815.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetComment gets the comment property value. The comment property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetComment()(*string) { - val, err := m.GetBackingStore().Get("comment") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetComment(val) - } - return nil - } - res["formula"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFormula(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - return res -} -// GetFormula gets the formula property value. The formula property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetFormula()(*string) { - val, err := m.GetBackingStore().Get("formula") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("comment", m.GetComment()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("formula", m.GetFormula()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetComment sets the comment property value. The comment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) SetComment(value *string)() { - err := m.GetBackingStore().Set("comment", value) - if err != nil { - panic(err) - } -} -// SetFormula sets the formula property value. The formula property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) SetFormula(value *string)() { - err := m.GetBackingStore().Set("formula", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetComment()(*string) - GetFormula()(*string) - GetName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetComment(value *string)() - SetFormula(value *string)() - SetName(value *string)() -} diff --git a/storage/fe4bcd2f7a0cd55ed552244c94cbab7336f3569ccb21a606cc020dff0aecf243.go b/storage/fe4bcd2f7a0cd55ed552244c94cbab7336f3569ccb21a606cc020dff0aecf243.go deleted file mode 100644 index 8878f6afc1..0000000000 --- a/storage/fe4bcd2f7a0cd55ed552244c94cbab7336f3569ccb21a606cc020dff0aecf243.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. -type FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters the source column for the content type column. -type FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the source column for the content type column. -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the source column for the content type column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsItemSourceColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ff6436011c59b58f424a83e5455af4c72ead5ff4208496e978d0c355543fb4fb.go b/storage/ff6436011c59b58f424a83e5455af4c72ead5ff4208496e978d0c355543fb4fb.go deleted file mode 100644 index 420d13b30d..0000000000 --- a/storage/ff6436011c59b58f424a83e5455af4c72ead5ff4208496e978d0c355543fb4fb.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/{workbookChart%2Did}/series/{workbookChartSeries%2Did}/points/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Format provides operations to manage the format property of the microsoft.graph.workbookChartPoint entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) Format()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get retrieve a point based on its position within the series. -// returns a WorkbookChartPointable 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/chartpointscollection-itemat?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartPointFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartPointable), nil -} -// ToGetRequestInformation retrieve a point based on its position within the series. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/ffbcd00a986a631d54288ed5d4caf1e760fa76e8880e40cc804faba9013a9efb.go b/storage/ffbcd00a986a631d54288ed5d4caf1e760fa76e8880e40cc804faba9013a9efb.go deleted file mode 100644 index 9f9894298c..0000000000 --- a/storage/ffbcd00a986a631d54288ed5d4caf1e760fa76e8880e40cc804faba9013a9efb.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/itemAt(index={index})/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the totals row of the column. -// returns a WorkbookRangeable 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/tablecolumn-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the totals row of the column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_file_storage_container_item_request_builder.go b/storage/file_storage_containers_file_storage_container_item_request_builder.go index 81a43962d5..a9cac6393a 100644 --- a/storage/file_storage_containers_file_storage_container_item_request_builder.go +++ b/storage/file_storage_containers_file_storage_container_item_request_builder.go @@ -120,6 +120,11 @@ func (m *FileStorageContainersFileStorageContainerItemRequestBuilder) Patch(ctx } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FileStorageContainerable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *FileStorageContainersItemPermanentDeleteRequestBuilder when successful +func (m *FileStorageContainersFileStorageContainerItemRequestBuilder) PermanentDelete()(*FileStorageContainersItemPermanentDeleteRequestBuilder) { + return NewFileStorageContainersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Permissions provides operations to manage the permissions property of the microsoft.graph.fileStorageContainer entity. // returns a *FileStorageContainersItemPermissionsRequestBuilder when successful func (m *FileStorageContainersFileStorageContainerItemRequestBuilder) Permissions()(*FileStorageContainersItemPermissionsRequestBuilder) { diff --git a/storage/file_storage_containers_item_drive_bundles_count_request_builder.go b/storage/file_storage_containers_item_drive_bundles_count_request_builder.go deleted file mode 100644 index 1d54e9fa4e..0000000000 --- a/storage/file_storage_containers_item_drive_bundles_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveBundlesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveBundlesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveBundlesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveBundlesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveBundlesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveBundlesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveBundlesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveBundlesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesCountRequestBuilder) { - m := &FileStorageContainersItemDriveBundlesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveBundlesCountRequestBuilder instantiates a new FileStorageContainersItemDriveBundlesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveBundlesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveBundlesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveBundlesCountRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_bundles_drive_item_item_request_builder.go b/storage/file_storage_containers_item_drive_bundles_drive_item_item_request_builder.go deleted file mode 100644 index 72d5b4fc44..0000000000 --- a/storage/file_storage_containers_item_drive_bundles_drive_item_item_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder provides operations to manage the bundles property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetQueryParameters collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -type FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveBundlesItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) Content()(*FileStorageContainersItemDriveBundlesItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_bundles_item_content_request_builder.go b/storage/file_storage_containers_item_drive_bundles_item_content_request_builder.go deleted file mode 100644 index 9070893fe2..0000000000 --- a/storage/file_storage_containers_item_drive_bundles_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveBundlesItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveBundlesItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveBundlesItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveBundlesItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveBundlesItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveBundlesItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveBundlesItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles/{driveItem%2Did}/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveBundlesItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveBundlesItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveBundlesItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveBundlesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveBundlesItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveBundlesItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_bundles_request_builder.go b/storage/file_storage_containers_item_drive_bundles_request_builder.go deleted file mode 100644 index 239ba4b30b..0000000000 --- a/storage/file_storage_containers_item_drive_bundles_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveBundlesRequestBuilder provides operations to manage the bundles property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveBundlesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveBundlesRequestBuilderGetQueryParameters collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -type FileStorageContainersItemDriveBundlesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveBundlesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveBundlesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveBundlesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveBundlesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByDriveItemId provides operations to manage the bundles property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) ByDriveItemId(driveItemId string)(*FileStorageContainersItemDriveBundlesDriveItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemId != "" { - urlTplParams["driveItem%2Did"] = driveItemId - } - return NewFileStorageContainersItemDriveBundlesDriveItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveBundlesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveBundlesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesRequestBuilder) { - m := &FileStorageContainersItemDriveBundlesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/bundles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveBundlesRequestBuilder instantiates a new FileStorageContainersItemDriveBundlesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveBundlesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveBundlesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveBundlesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveBundlesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) Count()(*FileStorageContainersItemDriveBundlesCountRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -// returns a DriveItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable), nil -} -// Post create new navigation property to bundles for storage -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveBundlesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveBundlesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to bundles for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveBundlesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveBundlesRequestBuilder when successful -func (m *FileStorageContainersItemDriveBundlesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveBundlesRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_created_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index 7e53df21f4..0000000000 --- a/storage/file_storage_containers_item_drive_created_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\createdByUser\mailboxSettings -type FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_created_by_user_request_builder.go b/storage/file_storage_containers_item_drive_created_by_user_request_builder.go deleted file mode 100644 index 7265638d67..0000000000 --- a/storage/file_storage_containers_item_drive_created_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveCreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveCreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveCreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type FileStorageContainersItemDriveCreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveCreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveCreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveCreatedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveCreatedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveCreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveCreatedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_count_request_builder.go b/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_count_request_builder.go deleted file mode 100644 index 148594f7df..0000000000 --- a/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - m := &FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder instantiates a new FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_request_builder.go b/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_request_builder.go deleted file mode 100644 index efefd084fb..0000000000 --- a/storage/file_storage_containers_item_drive_created_by_user_service_provisioning_errors_request_builder.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\createdByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_following_count_request_builder.go b/storage/file_storage_containers_item_drive_following_count_request_builder.go deleted file mode 100644 index 97d7180302..0000000000 --- a/storage/file_storage_containers_item_drive_following_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveFollowingCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveFollowingCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveFollowingCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveFollowingCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveFollowingCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveFollowingCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveFollowingCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveFollowingCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingCountRequestBuilder) { - m := &FileStorageContainersItemDriveFollowingCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveFollowingCountRequestBuilder instantiates a new FileStorageContainersItemDriveFollowingCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveFollowingCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveFollowingCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveFollowingCountRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_following_drive_item_item_request_builder.go b/storage/file_storage_containers_item_drive_following_drive_item_item_request_builder.go deleted file mode 100644 index d96b40a77c..0000000000 --- a/storage/file_storage_containers_item_drive_following_drive_item_item_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder provides operations to manage the following property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetQueryParameters the list of items the user is following. Only in OneDrive for Business. -type FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveFollowingItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) Content()(*FileStorageContainersItemDriveFollowingItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the list of items the user is following. Only in OneDrive for Business. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation the list of items the user is following. Only in OneDrive for Business. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_following_item_content_request_builder.go b/storage/file_storage_containers_item_drive_following_item_content_request_builder.go deleted file mode 100644 index 768267931c..0000000000 --- a/storage/file_storage_containers_item_drive_following_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveFollowingItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveFollowingItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveFollowingItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveFollowingItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveFollowingItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveFollowingItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveFollowingItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following/{driveItem%2Did}/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveFollowingItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveFollowingItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveFollowingItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveFollowingItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveFollowingItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveFollowingItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_following_request_builder.go b/storage/file_storage_containers_item_drive_following_request_builder.go deleted file mode 100644 index 3b4d877149..0000000000 --- a/storage/file_storage_containers_item_drive_following_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveFollowingRequestBuilder provides operations to manage the following property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveFollowingRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveFollowingRequestBuilderGetQueryParameters the list of items the user is following. Only in OneDrive for Business. -type FileStorageContainersItemDriveFollowingRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveFollowingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveFollowingRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveFollowingRequestBuilderGetQueryParameters -} -// ByDriveItemId provides operations to manage the following property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingRequestBuilder) ByDriveItemId(driveItemId string)(*FileStorageContainersItemDriveFollowingDriveItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemId != "" { - urlTplParams["driveItem%2Did"] = driveItemId - } - return NewFileStorageContainersItemDriveFollowingDriveItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveFollowingRequestBuilderInternal instantiates a new FileStorageContainersItemDriveFollowingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingRequestBuilder) { - m := &FileStorageContainersItemDriveFollowingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/following{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveFollowingRequestBuilder instantiates a new FileStorageContainersItemDriveFollowingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveFollowingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveFollowingRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveFollowingRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveFollowingCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingRequestBuilder) Count()(*FileStorageContainersItemDriveFollowingCountRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the list of items the user is following. Only in OneDrive for Business. -// returns a DriveItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveFollowingRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable), nil -} -// ToGetRequestInformation the list of items the user is following. Only in OneDrive for Business. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveFollowingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveFollowingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveFollowingRequestBuilder when successful -func (m *FileStorageContainersItemDriveFollowingRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveFollowingRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_count_request_builder.go b/storage/file_storage_containers_item_drive_items_count_request_builder.go deleted file mode 100644 index e2121ef186..0000000000 --- a/storage/file_storage_containers_item_drive_items_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_drive_item_item_request_builder.go b/storage/file_storage_containers_item_drive_items_drive_item_item_request_builder.go deleted file mode 100644 index d7f55af765..0000000000 --- a/storage/file_storage_containers_item_drive_items_drive_item_item_request_builder.go +++ /dev/null @@ -1,312 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder provides operations to manage the items property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetQueryParameters all items contained in the drive. Read-only. Nullable. -type FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Analytics provides operations to manage the analytics property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Analytics()(*FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AssignSensitivityLabel provides operations to call the assignSensitivityLabel method. -// returns a *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) AssignSensitivityLabel()(*FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Checkin provides operations to call the checkin method. -// returns a *FileStorageContainersItemDriveItemsItemCheckinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Checkin()(*FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Checkout provides operations to call the checkout method. -// returns a *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Checkout()(*FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Children provides operations to manage the children property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Children()(*FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveItemsItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Content()(*FileStorageContainersItemDriveItemsItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Copy provides operations to call the copy method. -// returns a *FileStorageContainersItemDriveItemsItemCopyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Copy()(*FileStorageContainersItemDriveItemsItemCopyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCopyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) CreatedByUser()(*FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreateLink provides operations to call the createLink method. -// returns a *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) CreateLink()(*FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreateUploadSession provides operations to call the createUploadSession method. -// returns a *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) CreateUploadSession()(*FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property items for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Delta provides operations to call the delta method. -// returns a *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Delta()(*FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DeltaWithToken provides operations to call the delta method. -// returns a *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) DeltaWithToken(token *string)(*FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, token) -} -// ExtractSensitivityLabels provides operations to call the extractSensitivityLabels method. -// returns a *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ExtractSensitivityLabels()(*FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Follow provides operations to call the follow method. -// returns a *FileStorageContainersItemDriveItemsItemFollowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Follow()(*FileStorageContainersItemDriveItemsItemFollowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemFollowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get all items contained in the drive. Read-only. Nullable. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// GetActivitiesByInterval provides operations to call the getActivitiesByInterval method. -// returns a *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) GetActivitiesByInterval()(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval provides operations to call the getActivitiesByInterval method. -// returns a *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(endDateTime *string, interval *string, startDateTime *string)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, interval, startDateTime) -} -// Invite provides operations to call the invite method. -// returns a *FileStorageContainersItemDriveItemsItemInviteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Invite()(*FileStorageContainersItemDriveItemsItemInviteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemInviteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) LastModifiedByUser()(*FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ListItem provides operations to manage the listItem property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemListItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ListItem()(*FileStorageContainersItemDriveItemsItemListItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemListItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property items in storage -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// PermanentDelete provides operations to call the permanentDelete method. -// returns a *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) PermanentDelete()(*FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Permissions provides operations to manage the permissions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Permissions()(*FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Preview provides operations to call the preview method. -// returns a *FileStorageContainersItemDriveItemsItemPreviewRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Preview()(*FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Restore provides operations to call the restore method. -// returns a *FileStorageContainersItemDriveItemsItemRestoreRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Restore()(*FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RetentionLabel provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) RetentionLabel()(*FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SearchWithQ provides operations to call the search method. -// returns a *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) SearchWithQ(q *string)(*FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, q) -} -// Subscriptions provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Subscriptions()(*FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Thumbnails provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Thumbnails()(*FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property items for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation all items contained in the drive. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property items in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Unfollow provides operations to call the unfollow method. -// returns a *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Unfollow()(*FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ValidatePermission provides operations to call the validatePermission method. -// returns a *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) ValidatePermission()(*FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Versions provides operations to manage the versions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Versions()(*FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Workbook provides operations to manage the workbook property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) Workbook()(*FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/file_storage_containers_item_drive_items_item_analytics_all_time_request_builder.go b/storage/file_storage_containers_item_drive_items_item_analytics_all_time_request_builder.go deleted file mode 100644 index 028fd757cd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_analytics_all_time_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. -type FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetQueryParameters get allTime from storage -type FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/allTime{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get allTime from storage -// returns a ItemActivityStatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable), nil -} -// ToGetRequestInformation get allTime from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_count_request_builder.go deleted file mode 100644 index 2aec826cae..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_request_builder.go b/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_request_builder.go deleted file mode 100644 index f1669d3bff..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_analytics_item_activity_stats_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetQueryParameters get itemActivityStats from storage -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByItemActivityStatId provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) ByItemActivityStatId(itemActivityStatId string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if itemActivityStatId != "" { - urlTplParams["itemActivityStat%2Did"] = itemActivityStatId - } - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsItemActivityStatItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/itemActivityStats{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get get itemActivityStats from storage -// returns a ItemActivityStatCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatCollectionResponseable), nil -} -// Post create new navigation property to itemActivityStats for storage -// returns a ItemActivityStatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable), nil -} -// ToGetRequestInformation get itemActivityStats from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to itemActivityStats for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_analytics_last_seven_days_request_builder.go b/storage/file_storage_containers_item_drive_items_item_analytics_last_seven_days_request_builder.go deleted file mode 100644 index 4b3073a35a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_analytics_last_seven_days_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. -type FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetQueryParameters get lastSevenDays from storage -type FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics/lastSevenDays{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get lastSevenDays from storage -// returns a ItemActivityStatable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable), nil -} -// ToGetRequestInformation get lastSevenDays from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_analytics_request_builder.go b/storage/file_storage_containers_item_drive_items_item_analytics_request_builder.go deleted file mode 100644 index 8f258eb8ce..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_analytics_request_builder.go +++ /dev/null @@ -1,172 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder provides operations to manage the analytics property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this item. -type FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// AllTime provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) AllTime()(*FileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsAllTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/analytics{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property analytics for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get analytics about the view activities that took place on this item. -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// ItemActivityStats provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) ItemActivityStats()(*FileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsItemActivityStatsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastSevenDays provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) LastSevenDays()(*FileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsLastSevenDaysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property analytics in storage -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// ToDeleteRequestInformation delete navigation property analytics for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation analytics about the view activities that took place on this item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property analytics in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, requestConfiguration *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_post_request_body.go deleted file mode 100644 index 60a5559a70..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_post_request_body.go +++ /dev/null @@ -1,189 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody()(*FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAssignmentMethod gets the assignmentMethod property value. The assignmentMethod property -// returns a *SensitivityLabelAssignmentMethod when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetAssignmentMethod()(*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod) { - val, err := m.GetBackingStore().Get("assignmentMethod") - if err != nil { - panic(err) - } - if val != nil { - return val.(*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["assignmentMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetEnumValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ParseSensitivityLabelAssignmentMethod) - if err != nil { - return err - } - if val != nil { - m.SetAssignmentMethod(val.(*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod)) - } - return nil - } - res["justificationText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetJustificationText(val) - } - return nil - } - res["sensitivityLabelId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSensitivityLabelId(val) - } - return nil - } - return res -} -// GetJustificationText gets the justificationText property value. The justificationText property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetJustificationText()(*string) { - val, err := m.GetBackingStore().Get("justificationText") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSensitivityLabelId gets the sensitivityLabelId property value. The sensitivityLabelId property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) GetSensitivityLabelId()(*string) { - val, err := m.GetBackingStore().Get("sensitivityLabelId") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetAssignmentMethod() != nil { - cast := (*m.GetAssignmentMethod()).String() - err := writer.WriteStringValue("assignmentMethod", &cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("justificationText", m.GetJustificationText()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("sensitivityLabelId", m.GetSensitivityLabelId()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAssignmentMethod sets the assignmentMethod property value. The assignmentMethod property -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) SetAssignmentMethod(value *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod)() { - err := m.GetBackingStore().Set("assignmentMethod", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetJustificationText sets the justificationText property value. The justificationText property -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) SetJustificationText(value *string)() { - err := m.GetBackingStore().Set("justificationText", value) - if err != nil { - panic(err) - } -} -// SetSensitivityLabelId sets the sensitivityLabelId property value. The sensitivityLabelId property -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBody) SetSensitivityLabelId(value *string)() { - err := m.GetBackingStore().Set("sensitivityLabelId", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAssignmentMethod()(*iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetJustificationText()(*string) - GetSensitivityLabelId()(*string) - SetAssignmentMethod(value *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SensitivityLabelAssignmentMethod)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetJustificationText(value *string)() - SetSensitivityLabelId(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_request_builder.go b/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_request_builder.go deleted file mode 100644 index 77dce51745..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_assign_sensitivity_label_request_builder.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder provides operations to call the assignSensitivityLabel method. -type FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/assignSensitivityLabel", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action assignSensitivityLabel -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action assignSensitivityLabel -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemAssignSensitivityLabelPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemAssignSensitivityLabelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_checkin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_checkin_post_request_body.go deleted file mode 100644 index fe1d1a7fa8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_checkin_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemCheckinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemCheckinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemCheckinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCheckinPostRequestBody()(*FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemCheckinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemCheckinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemCheckinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemCheckinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCheckInAs gets the checkInAs property value. The checkInAs property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) GetCheckInAs()(*string) { - val, err := m.GetBackingStore().Get("checkInAs") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetComment gets the comment property value. The comment property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) GetComment()(*string) { - val, err := m.GetBackingStore().Get("comment") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["checkInAs"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCheckInAs(val) - } - return nil - } - res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetComment(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("checkInAs", m.GetCheckInAs()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("comment", m.GetComment()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCheckInAs sets the checkInAs property value. The checkInAs property -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) SetCheckInAs(value *string)() { - err := m.GetBackingStore().Set("checkInAs", value) - if err != nil { - panic(err) - } -} -// SetComment sets the comment property value. The comment property -func (m *FileStorageContainersItemDriveItemsItemCheckinPostRequestBody) SetComment(value *string)() { - err := m.GetBackingStore().Set("comment", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemCheckinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCheckInAs()(*string) - GetComment()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCheckInAs(value *string)() - SetComment(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_checkin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_checkin_request_builder.go deleted file mode 100644 index 88629f54df..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_checkin_request_builder.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCheckinRequestBuilder provides operations to call the checkin method. -type FileStorageContainersItemDriveItemsItemCheckinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCheckinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCheckinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCheckinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCheckinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCheckinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post check in a checked out driveItem resource, which makes the version of the document available to others. -// 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/driveitem-checkin?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemCheckinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCheckinRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation check in a checked out driveItem resource, which makes the version of the document available to others. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemCheckinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCheckinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCheckinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCheckinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCheckinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_checkout_request_builder.go b/storage/file_storage_containers_item_drive_items_item_checkout_request_builder.go deleted file mode 100644 index 16bb7fe0a1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_checkout_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder provides operations to call the checkout method. -type FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCheckoutRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCheckoutRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/checkout", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilderInternal(urlParams, requestAdapter) -} -// Post check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. -// 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/driveitem-checkout?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation check out a driveItem resource to prevent others from editing the document, and prevent your changes from being visible until the documented is checked in. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCheckoutRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCheckoutRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_children_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_children_count_request_builder.go deleted file mode 100644 index c934e35898..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_children_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_children_drive_item_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_children_drive_item_item_request_builder.go deleted file mode 100644 index 0c17412cf8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_children_drive_item_item_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder provides operations to manage the children property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetQueryParameters collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) Content()(*FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_children_item_content_request_builder.go b/storage/file_storage_containers_item_drive_items_item_children_item_content_request_builder.go deleted file mode 100644 index b836c84770..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_children_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children/{driveItem%2Did1}/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_children_request_builder.go b/storage/file_storage_containers_item_drive_items_item_children_request_builder.go deleted file mode 100644 index 0320349333..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_children_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemChildrenRequestBuilder provides operations to manage the children property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemChildrenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetQueryParameters collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemChildrenRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemChildrenRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByDriveItemId1 provides operations to manage the children property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) ByDriveItemId1(driveItemId1 string)(*FileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemId1 != "" { - urlTplParams["driveItem%2Did1"] = driveItemId1 - } - return NewFileStorageContainersItemDriveItemsItemChildrenDriveItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemChildrenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemChildrenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemChildrenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemChildrenCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -// returns a DriveItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable), nil -} -// Post create new navigation property to children for storage -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to children for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemChildrenRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemChildrenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemChildrenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_content_request_builder.go b/storage/file_storage_containers_item_drive_items_item_content_request_builder.go deleted file mode 100644 index 44c98b5e51..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveItemsItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveItemsItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveItemsItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_copy_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_copy_post_request_body.go deleted file mode 100644 index 66ef93f6a8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_copy_post_request_body.go +++ /dev/null @@ -1,151 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemCopyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemCopyPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemCopyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCopyPostRequestBody()(*FileStorageContainersItemDriveItemsItemCopyPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemCopyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemCopyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemCopyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemCopyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["parentReference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemReferenceFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParentReference(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetParentReference gets the parentReference property value. The parentReference property -// returns a ItemReferenceable when successful -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) GetParentReference()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) { - val, err := m.GetBackingStore().Get("parentReference") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("parentReference", m.GetParentReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetParentReference sets the parentReference property value. The parentReference property -func (m *FileStorageContainersItemDriveItemsItemCopyPostRequestBody) SetParentReference(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() { - err := m.GetBackingStore().Set("parentReference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemCopyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetName()(*string) - GetParentReference()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetName(value *string)() - SetParentReference(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_copy_request_builder.go b/storage/file_storage_containers_item_drive_items_item_copy_request_builder.go deleted file mode 100644 index 9ef3551734..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_copy_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCopyRequestBuilder provides operations to call the copy method. -type FileStorageContainersItemDriveItemsItemCopyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCopyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCopyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCopyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCopyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCopyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCopyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCopyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/copy", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCopyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCopyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCopyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCopyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCopyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. -// returns a DriveItemable 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/driveitem-copy?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemCopyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemCopyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCopyRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToPostRequestInformation asynchronously creates a copy of an driveItem (including any children), under a new parent item or with a new name. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemCopyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCopyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCopyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCopyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_create_link_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_create_link_post_request_body.go deleted file mode 100644 index ee91a910bc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_create_link_post_request_body.go +++ /dev/null @@ -1,386 +0,0 @@ -package storage - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody()(*FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property -// returns a *Time when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("expirationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetExpirationDateTime(val) - } - return nil - } - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPassword(val) - } - return nil - } - res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveRecipientFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - } - m.SetRecipients(res) - } - return nil - } - res["retainInheritedPermissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetRetainInheritedPermissions(val) - } - return nil - } - res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetScope(val) - } - return nil - } - res["sendNotification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetSendNotification(val) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { - val, err := m.GetBackingStore().Get("message") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPassword gets the password property value. The password property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { - val, err := m.GetBackingStore().Get("password") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetRecipients gets the recipients property value. The recipients property -// returns a []DriveRecipientable when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) { - val, err := m.GetBackingStore().Get("recipients") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - return nil -} -// GetRetainInheritedPermissions gets the retainInheritedPermissions property value. The retainInheritedPermissions property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetRetainInheritedPermissions()(*bool) { - val, err := m.GetBackingStore().Get("retainInheritedPermissions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetScope gets the scope property value. The scope property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetScope()(*string) { - val, err := m.GetBackingStore().Get("scope") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSendNotification gets the sendNotification property value. The sendNotification property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetSendNotification()(*bool) { - val, err := m.GetBackingStore().Get("sendNotification") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) GetTypeEscaped()(*string) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("password", m.GetPassword()) - if err != nil { - return err - } - } - if m.GetRecipients() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecipients())) - for i, v := range m.GetRecipients() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("recipients", cast) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("retainInheritedPermissions", m.GetRetainInheritedPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("scope", m.GetScope()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("sendNotification", m.GetSendNotification()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("expirationDateTime", value) - if err != nil { - panic(err) - } -} -// SetMessage sets the message property value. The message property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { - err := m.GetBackingStore().Set("message", value) - if err != nil { - panic(err) - } -} -// SetPassword sets the password property value. The password property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { - err := m.GetBackingStore().Set("password", value) - if err != nil { - panic(err) - } -} -// SetRecipients sets the recipients property value. The recipients property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() { - err := m.GetBackingStore().Set("recipients", value) - if err != nil { - panic(err) - } -} -// SetRetainInheritedPermissions sets the retainInheritedPermissions property value. The retainInheritedPermissions property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetRetainInheritedPermissions(value *bool)() { - err := m.GetBackingStore().Set("retainInheritedPermissions", value) - if err != nil { - panic(err) - } -} -// SetScope sets the scope property value. The scope property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetScope(value *string)() { - err := m.GetBackingStore().Set("scope", value) - if err != nil { - panic(err) - } -} -// SetSendNotification sets the sendNotification property value. The sendNotification property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetSendNotification(value *bool)() { - err := m.GetBackingStore().Set("sendNotification", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBody) SetTypeEscaped(value *string)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetMessage()(*string) - GetPassword()(*string) - GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - GetRetainInheritedPermissions()(*bool) - GetScope()(*string) - GetSendNotification()(*bool) - GetTypeEscaped()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetMessage(value *string)() - SetPassword(value *string)() - SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() - SetRetainInheritedPermissions(value *bool)() - SetScope(value *string)() - SetSendNotification(value *bool)() - SetTypeEscaped(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_create_link_request_builder.go b/storage/file_storage_containers_item_drive_items_item_create_link_request_builder.go deleted file mode 100644 index b040822a43..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_create_link_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder provides operations to call the createLink method. -type FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createLink", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) -} -// Post you can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. -// returns a Permissionable 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/driveitem-createlink?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToPostRequestInformation you can use createLink action to share a DriveItem via a sharing link. The createLink action will create a new sharing link if the specified link type doesn't already exist for the calling application.If a sharing link of the specified type already exists for the app, the existing sharing link will be returned. DriveItem resources inherit sharing permissions from their ancestors. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemCreateLinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreateLinkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_create_upload_session_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_create_upload_session_post_request_body.go deleted file mode 100644 index 63e01bcdd0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_create_upload_session_post_request_body.go +++ /dev/null @@ -1,114 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody()(*FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["item"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemUploadablePropertiesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetItem(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable)) - } - return nil - } - return res -} -// GetItem gets the item property value. The item property -// returns a DriveItemUploadablePropertiesable when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) GetItem()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable) { - val, err := m.GetBackingStore().Get("item") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("item", m.GetItem()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetItem sets the item property value. The item property -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBody) SetItem(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable)() { - err := m.GetBackingStore().Set("item", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetItem()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetItem(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemUploadablePropertiesable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_create_upload_session_request_builder.go b/storage/file_storage_containers_item_drive_items_item_create_upload_session_request_builder.go deleted file mode 100644 index 0ae4e653b0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_create_upload_session_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder provides operations to call the createUploadSession method. -type FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createUploadSession", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action createUploadSession -// returns a UploadSessionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UploadSessionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUploadSessionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UploadSessionable), nil -} -// ToPostRequestInformation invoke action createUploadSession -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemCreateUploadSessionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_items_item_created_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index 9013139677..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_created_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\items\{driveItem-id}\createdByUser\mailboxSettings -type FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_created_by_user_request_builder.go b/storage/file_storage_containers_item_drive_items_item_created_by_user_request_builder.go deleted file mode 100644 index 27a41786d4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_created_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_get_response.go b/storage/file_storage_containers_item_drive_items_item_delta_get_response.go deleted file mode 100644 index d38276018f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemDeltaGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponse -} -// NewFileStorageContainersItemDriveItemsItemDeltaGetResponse instantiates a new FileStorageContainersItemDriveItemsItemDeltaGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaGetResponse()(*FileStorageContainersItemDriveItemsItemDeltaGetResponse) { - m := &FileStorageContainersItemDriveItemsItemDeltaGetResponse{ - BaseDeltaFunctionResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseDeltaFunctionResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemDeltaGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemDeltaGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemDeltaGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseDeltaFunctionResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemDeltaGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseDeltaFunctionResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemDeltaGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemDeltaGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_request_builder.go b/storage/file_storage_containers_item_drive_items_item_delta_request_builder.go deleted file mode 100644 index c4938c934d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_request_builder.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemDeltaRequestBuilder provides operations to call the delta method. -type FileStorageContainersItemDriveItemsItemDeltaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetQueryParameters track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. -type FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemDeltaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilderInternal(urlParams, requestAdapter) -} -// Get track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. -// Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemDeltaResponseable 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/driveitem-delta?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemDeltaResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemDeltaResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemDeltaResponseable), nil -} -// GetAsDeltaGetResponse track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. -// returns a FileStorageContainersItemDriveItemsItemDeltaGetResponseable 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/driveitem-delta?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemDeltaGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemDeltaGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemDeltaGetResponseable), nil -} -// ToGetRequestInformation track changes in a driveItem and its children over time. Your app begins by calling delta without any parameters.The service starts enumerating the drive's hierarchy, returning pages of items and either an @odata.nextLink or an @odata.deltaLink, as described below.Your app should continue calling with the @odata.nextLink until you no longer see an @odata.nextLink returned, or you see a response with an empty set of changes. After you have finished receiving all the changes, you may apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. Deleted items are returned with the deleted facet.Items with this property set should be removed from your local state. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_response.go b/storage/file_storage_containers_item_drive_items_item_delta_response.go deleted file mode 100644 index e97520666d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemDeltaGetResponseable instead. -type FileStorageContainersItemDriveItemsItemDeltaResponse struct { - FileStorageContainersItemDriveItemsItemDeltaGetResponse -} -// NewFileStorageContainersItemDriveItemsItemDeltaResponse instantiates a new FileStorageContainersItemDriveItemsItemDeltaResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaResponse()(*FileStorageContainersItemDriveItemsItemDeltaResponse) { - m := &FileStorageContainersItemDriveItemsItemDeltaResponse{ - FileStorageContainersItemDriveItemsItemDeltaGetResponse: *NewFileStorageContainersItemDriveItemsItemDeltaGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemDeltaResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemDeltaResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemDeltaResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemDeltaGetResponseable instead. -type FileStorageContainersItemDriveItemsItemDeltaResponseable interface { - FileStorageContainersItemDriveItemsItemDeltaGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_with_token_get_response.go b/storage/file_storage_containers_item_drive_items_item_delta_with_token_get_response.go deleted file mode 100644 index 12d13c1a29..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_with_token_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponse -} -// NewFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse instantiates a new FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse()(*FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse) { - m := &FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse{ - BaseDeltaFunctionResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseDeltaFunctionResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseDeltaFunctionResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseDeltaFunctionResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_with_token_request_builder.go b/storage/file_storage_containers_item_drive_items_item_delta_with_token_request_builder.go deleted file mode 100644 index b678dbc87d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_with_token_request_builder.go +++ /dev/null @@ -1,116 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder provides operations to call the delta method. -type FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetQueryParameters invoke function delta -type FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, token *string)(*FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if token != nil { - m.BaseRequestBuilder.PathParameters["token"] = *token - } - return m -} -// NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function delta -// Deprecated: This method is obsolete. Use GetAsDeltaWithTokenGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemDeltaWithTokenResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemDeltaWithTokenResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemDeltaWithTokenResponseable), nil -} -// GetAsDeltaWithTokenGetResponse invoke function delta -// returns a FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) GetAsDeltaWithTokenGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable), nil -} -// ToGetRequestInformation invoke function delta -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemDeltaWithTokenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_delta_with_token_response.go b/storage/file_storage_containers_item_drive_items_item_delta_with_token_response.go deleted file mode 100644 index 987ff541af..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_delta_with_token_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable instead. -type FileStorageContainersItemDriveItemsItemDeltaWithTokenResponse struct { - FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse -} -// NewFileStorageContainersItemDriveItemsItemDeltaWithTokenResponse instantiates a new FileStorageContainersItemDriveItemsItemDeltaWithTokenResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemDeltaWithTokenResponse()(*FileStorageContainersItemDriveItemsItemDeltaWithTokenResponse) { - m := &FileStorageContainersItemDriveItemsItemDeltaWithTokenResponse{ - FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse: *NewFileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemDeltaWithTokenResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemDeltaWithTokenResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable instead. -type FileStorageContainersItemDriveItemsItemDeltaWithTokenResponseable interface { - FileStorageContainersItemDriveItemsItemDeltaWithTokenGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_extract_sensitivity_labels_request_builder.go b/storage/file_storage_containers_item_drive_items_item_extract_sensitivity_labels_request_builder.go deleted file mode 100644 index 17c94efed8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_extract_sensitivity_labels_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder provides operations to call the extractSensitivityLabels method. -type FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/extractSensitivityLabels", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action extractSensitivityLabels -// returns a ExtractSensitivityLabelsResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExtractSensitivityLabelsResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateExtractSensitivityLabelsResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ExtractSensitivityLabelsResultable), nil -} -// ToPostRequestInformation invoke action extractSensitivityLabels -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemExtractSensitivityLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_follow_request_builder.go b/storage/file_storage_containers_item_drive_items_item_follow_request_builder.go deleted file mode 100644 index eec1c5ae03..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_follow_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemFollowRequestBuilder provides operations to call the follow method. -type FileStorageContainersItemDriveItemsItemFollowRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemFollowRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemFollowRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemFollowRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemFollowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemFollowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemFollowRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemFollowRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/follow", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemFollowRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemFollowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemFollowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemFollowRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemFollowRequestBuilderInternal(urlParams, requestAdapter) -} -// Post follow a driveItem. -// returns a DriveItemable 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/driveitem-follow?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemFollowRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemFollowRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToPostRequestInformation follow a driveItem. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemFollowRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemFollowRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemFollowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemFollowRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemFollowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemFollowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_get_response.go b/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_get_response.go deleted file mode 100644 index a4ffa93c23..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse()(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ItemActivityStatable when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_request_builder.go b/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_request_builder.go deleted file mode 100644 index 920f0712af..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_request_builder.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder provides operations to call the getActivitiesByInterval method. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. -// Deprecated: This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseable 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/itemactivitystat-getactivitybyinterval?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseable), nil -} -// GetAsGetActivitiesByIntervalGetResponse get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. -// returns a FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable 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/itemactivitystat-getactivitybyinterval?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) GetAsGetActivitiesByIntervalGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable), nil -} -// ToGetRequestInformation get a collection of itemActivityStats resources for the activities that took place on this resource within the specified time interval. Analytics aggregates might not be available for all action types. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_response.go b/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_response.go deleted file mode 100644 index 15214f0093..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_get_activities_by_interval_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable instead. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse struct { - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse -} -// NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse instantiates a new FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse()(*FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse) { - m := &FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse{ - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse: *NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable instead. -type FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalResponseable interface { - FileStorageContainersItemDriveItemsItemGetActivitiesByIntervalGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_invite_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_invite_post_request_body.go deleted file mode 100644 index acc50c1b3b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_invite_post_request_body.go +++ /dev/null @@ -1,391 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemInvitePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemInvitePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemInvitePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemInvitePostRequestBody()(*FileStorageContainersItemDriveItemsItemInvitePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemInvitePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemInvitePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemInvitePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemInvitePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetExpirationDateTime()(*string) { - val, err := m.GetBackingStore().Get("expirationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetExpirationDateTime(val) - } - return nil - } - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPassword(val) - } - return nil - } - res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveRecipientFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - } - m.SetRecipients(res) - } - return nil - } - res["requireSignIn"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetRequireSignIn(val) - } - return nil - } - res["retainInheritedPermissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetRetainInheritedPermissions(val) - } - return nil - } - res["roles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetRoles(res) - } - return nil - } - res["sendInvitation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetSendInvitation(val) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetMessage()(*string) { - val, err := m.GetBackingStore().Get("message") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPassword gets the password property value. The password property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetPassword()(*string) { - val, err := m.GetBackingStore().Get("password") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetRecipients gets the recipients property value. The recipients property -// returns a []DriveRecipientable when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) { - val, err := m.GetBackingStore().Get("recipients") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - return nil -} -// GetRequireSignIn gets the requireSignIn property value. The requireSignIn property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetRequireSignIn()(*bool) { - val, err := m.GetBackingStore().Get("requireSignIn") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetRetainInheritedPermissions gets the retainInheritedPermissions property value. The retainInheritedPermissions property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetRetainInheritedPermissions()(*bool) { - val, err := m.GetBackingStore().Get("retainInheritedPermissions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetRoles gets the roles property value. The roles property -// returns a []string when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetRoles()([]string) { - val, err := m.GetBackingStore().Get("roles") - if err != nil { - panic(err) - } - if val != nil { - return val.([]string) - } - return nil -} -// GetSendInvitation gets the sendInvitation property value. The sendInvitation property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) GetSendInvitation()(*bool) { - val, err := m.GetBackingStore().Get("sendInvitation") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("password", m.GetPassword()) - if err != nil { - return err - } - } - if m.GetRecipients() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecipients())) - for i, v := range m.GetRecipients() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("recipients", cast) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("requireSignIn", m.GetRequireSignIn()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("retainInheritedPermissions", m.GetRetainInheritedPermissions()) - if err != nil { - return err - } - } - if m.GetRoles() != nil { - err := writer.WriteCollectionOfStringValues("roles", m.GetRoles()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("sendInvitation", m.GetSendInvitation()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetExpirationDateTime(value *string)() { - err := m.GetBackingStore().Set("expirationDateTime", value) - if err != nil { - panic(err) - } -} -// SetMessage sets the message property value. The message property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetMessage(value *string)() { - err := m.GetBackingStore().Set("message", value) - if err != nil { - panic(err) - } -} -// SetPassword sets the password property value. The password property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetPassword(value *string)() { - err := m.GetBackingStore().Set("password", value) - if err != nil { - panic(err) - } -} -// SetRecipients sets the recipients property value. The recipients property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() { - err := m.GetBackingStore().Set("recipients", value) - if err != nil { - panic(err) - } -} -// SetRequireSignIn sets the requireSignIn property value. The requireSignIn property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetRequireSignIn(value *bool)() { - err := m.GetBackingStore().Set("requireSignIn", value) - if err != nil { - panic(err) - } -} -// SetRetainInheritedPermissions sets the retainInheritedPermissions property value. The retainInheritedPermissions property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetRetainInheritedPermissions(value *bool)() { - err := m.GetBackingStore().Set("retainInheritedPermissions", value) - if err != nil { - panic(err) - } -} -// SetRoles sets the roles property value. The roles property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetRoles(value []string)() { - err := m.GetBackingStore().Set("roles", value) - if err != nil { - panic(err) - } -} -// SetSendInvitation sets the sendInvitation property value. The sendInvitation property -func (m *FileStorageContainersItemDriveItemsItemInvitePostRequestBody) SetSendInvitation(value *bool)() { - err := m.GetBackingStore().Set("sendInvitation", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemInvitePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetExpirationDateTime()(*string) - GetMessage()(*string) - GetPassword()(*string) - GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - GetRequireSignIn()(*bool) - GetRetainInheritedPermissions()(*bool) - GetRoles()([]string) - GetSendInvitation()(*bool) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetExpirationDateTime(value *string)() - SetMessage(value *string)() - SetPassword(value *string)() - SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() - SetRequireSignIn(value *bool)() - SetRetainInheritedPermissions(value *bool)() - SetRoles(value []string)() - SetSendInvitation(value *bool)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_invite_post_response.go b/storage/file_storage_containers_item_drive_items_item_invite_post_response.go deleted file mode 100644 index a0fa2aa6be..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_invite_post_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemInvitePostResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveItemsItemInvitePostResponse instantiates a new FileStorageContainersItemDriveItemsItemInvitePostResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemInvitePostResponse()(*FileStorageContainersItemDriveItemsItemInvitePostResponse) { - m := &FileStorageContainersItemDriveItemsItemInvitePostResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemInvitePostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemInvitePostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemInvitePostResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []Permissionable when successful -func (m *FileStorageContainersItemDriveItemsItemInvitePostResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemInvitePostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemInvitePostResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemInvitePostResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_invite_request_builder.go b/storage/file_storage_containers_item_drive_items_item_invite_request_builder.go deleted file mode 100644 index ad7977c27d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_invite_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemInviteRequestBuilder provides operations to call the invite method. -type FileStorageContainersItemDriveItemsItemInviteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemInviteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemInviteRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemInviteRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemInviteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemInviteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemInviteRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemInviteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/invite", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemInviteRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemInviteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemInviteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemInviteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemInviteRequestBuilderInternal(urlParams, requestAdapter) -} -// Post sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. -// Deprecated: This method is obsolete. Use PostAsInvitePostResponse instead. -// returns a FileStorageContainersItemDriveItemsItemInviteResponseable 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/driveitem-invite?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemInviteRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemInvitePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemInviteRequestBuilderPostRequestConfiguration)(FileStorageContainersItemDriveItemsItemInviteResponseable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemInviteResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemInviteResponseable), nil -} -// PostAsInvitePostResponse sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. -// returns a FileStorageContainersItemDriveItemsItemInvitePostResponseable 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/driveitem-invite?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemInviteRequestBuilder) PostAsInvitePostResponse(ctx context.Context, body FileStorageContainersItemDriveItemsItemInvitePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemInviteRequestBuilderPostRequestConfiguration)(FileStorageContainersItemDriveItemsItemInvitePostResponseable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemInvitePostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemInvitePostResponseable), nil -} -// ToPostRequestInformation sends a sharing invitation for a driveItem.A sharing invitation provides permissions to the recipients and optionally sends them an email with a sharing link. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemInvitePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemInviteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemInviteRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemInviteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemInviteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_invite_response.go b/storage/file_storage_containers_item_drive_items_item_invite_response.go deleted file mode 100644 index 122ab61b22..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_invite_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemInvitePostResponseable instead. -type FileStorageContainersItemDriveItemsItemInviteResponse struct { - FileStorageContainersItemDriveItemsItemInvitePostResponse -} -// NewFileStorageContainersItemDriveItemsItemInviteResponse instantiates a new FileStorageContainersItemDriveItemsItemInviteResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemInviteResponse()(*FileStorageContainersItemDriveItemsItemInviteResponse) { - m := &FileStorageContainersItemDriveItemsItemInviteResponse{ - FileStorageContainersItemDriveItemsItemInvitePostResponse: *NewFileStorageContainersItemDriveItemsItemInvitePostResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemInviteResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemInviteResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemInviteResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemInvitePostResponseable instead. -type FileStorageContainersItemDriveItemsItemInviteResponseable interface { - FileStorageContainersItemDriveItemsItemInvitePostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index 96144ed23a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\items\{driveItem-id}\lastModifiedByUser\mailboxSettings -type FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_request_builder.go deleted file mode 100644 index c922811b8a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_list_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_list_item_request_builder.go deleted file mode 100644 index 33c7c23556..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_list_item_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemListItemRequestBuilder provides operations to manage the listItem property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemListItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetQueryParameters for drives in SharePoint, the associated document library list item. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemListItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemListItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemListItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemListItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemListItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/listItem{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemListItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemListItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemListItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemListItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemListItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Get for drives in SharePoint, the associated document library list item. Read-only. Nullable. -// returns a ListItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable), nil -} -// ToGetRequestInformation for drives in SharePoint, the associated document library list item. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemListItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemListItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemListItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemListItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_permanent_delete_request_builder.go b/storage/file_storage_containers_item_drive_items_item_permanent_delete_request_builder.go deleted file mode 100644 index 3928642366..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permanent_delete_request_builder.go +++ /dev/null @@ -1,64 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. -type FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permanentDelete", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action permanentDelete -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action permanentDelete -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_permissions_count_request_builder.go deleted file mode 100644 index 188b225803..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_request_body.go deleted file mode 100644 index c181074c9e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_request_body.go +++ /dev/null @@ -1,169 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody()(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveRecipientFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - } - m.SetRecipients(res) - } - return nil - } - res["roles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("string") - if err != nil { - return err - } - if val != nil { - res := make([]string, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*string)) - } - } - m.SetRoles(res) - } - return nil - } - return res -} -// GetRecipients gets the recipients property value. The recipients property -// returns a []DriveRecipientable when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) { - val, err := m.GetBackingStore().Get("recipients") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - return nil -} -// GetRoles gets the roles property value. The roles property -// returns a []string when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) GetRoles()([]string) { - val, err := m.GetBackingStore().Get("roles") - if err != nil { - panic(err) - } - if val != nil { - return val.([]string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetRecipients() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecipients())) - for i, v := range m.GetRecipients() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("recipients", cast) - if err != nil { - return err - } - } - if m.GetRoles() != nil { - err := writer.WriteCollectionOfStringValues("roles", m.GetRoles()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetRecipients sets the recipients property value. The recipients property -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() { - err := m.GetBackingStore().Set("recipients", value) - if err != nil { - panic(err) - } -} -// SetRoles sets the roles property value. The roles property -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBody) SetRoles(value []string)() { - err := m.GetBackingStore().Set("roles", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - GetRoles()([]string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() - SetRoles(value []string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_response.go b/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_response.go deleted file mode 100644 index c577574c51..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_post_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse instantiates a new FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse()(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse) { - m := &FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []Permissionable when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_request_builder.go b/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_request_builder.go deleted file mode 100644 index cbe69bf9b0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_request_builder.go +++ /dev/null @@ -1,99 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder provides operations to call the grant method. -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}/grant", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderInternal(urlParams, requestAdapter) -} -// Post grant users access to a link represented by a permission. -// Deprecated: This method is obsolete. Use PostAsGrantPostResponse instead. -// returns a FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseable 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/permission-grant?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderPostRequestConfiguration)(FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseable), nil -} -// PostAsGrantPostResponse grant users access to a link represented by a permission. -// returns a FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable 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/permission-grant?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) PostAsGrantPostResponse(ctx context.Context, body FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderPostRequestConfiguration)(FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable), nil -} -// ToPostRequestInformation grant users access to a link represented by a permission. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_response.go b/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_response.go deleted file mode 100644 index 9daf650915..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_item_grant_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable instead. -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse struct { - FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse -} -// NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse instantiates a new FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse()(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse) { - m := &FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse{ - FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse: *NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable instead. -type FileStorageContainersItemDriveItemsItemPermissionsItemGrantResponseable interface { - FileStorageContainersItemDriveItemsItemPermissionsItemGrantPostResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_permission_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_permissions_permission_item_request_builder.go deleted file mode 100644 index 202833b650..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_permission_item_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder provides operations to manage the permissions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetQueryParameters the set of permissions for the item. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions/{permission%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property permissions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the set of permissions for the item. Read-only. Nullable. -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// Grant provides operations to call the grant method. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) Grant()(*FileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsItemGrantRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property permissions in storage -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToDeleteRequestInformation delete navigation property permissions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the set of permissions for the item. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property permissions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_permissions_request_builder.go b/storage/file_storage_containers_item_drive_items_item_permissions_request_builder.go deleted file mode 100644 index 43261e30c3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_permissions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder provides operations to manage the permissions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetQueryParameters the set of permissions for the item. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByPermissionId provides operations to manage the permissions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) ByPermissionId(permissionId string)(*FileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if permissionId != "" { - urlTplParams["permission%2Did"] = permissionId - } - return NewFileStorageContainersItemDriveItemsItemPermissionsPermissionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/permissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the set of permissions for the item. Read-only. Nullable. -// returns a PermissionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PermissionCollectionResponseable), nil -} -// Post create new navigation property to permissions for storage -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToGetRequestInformation the set of permissions for the item. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to permissions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, requestConfiguration *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPermissionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_preview_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_preview_post_request_body.go deleted file mode 100644 index d6d9bf8f26..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_preview_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemPreviewPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemPreviewPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemPreviewPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPreviewPostRequestBody()(*FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemPreviewPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemPreviewPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemPreviewPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemPreviewPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["page"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPage(val) - } - return nil - } - res["zoom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetFloat64Value() - if err != nil { - return err - } - if val != nil { - m.SetZoom(val) - } - return nil - } - return res -} -// GetPage gets the page property value. The page property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) GetPage()(*string) { - val, err := m.GetBackingStore().Get("page") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetZoom gets the zoom property value. The zoom property -// returns a *float64 when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) GetZoom()(*float64) { - val, err := m.GetBackingStore().Get("zoom") - if err != nil { - panic(err) - } - if val != nil { - return val.(*float64) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("page", m.GetPage()) - if err != nil { - return err - } - } - { - err := writer.WriteFloat64Value("zoom", m.GetZoom()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPage sets the page property value. The page property -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) SetPage(value *string)() { - err := m.GetBackingStore().Set("page", value) - if err != nil { - panic(err) - } -} -// SetZoom sets the zoom property value. The zoom property -func (m *FileStorageContainersItemDriveItemsItemPreviewPostRequestBody) SetZoom(value *float64)() { - err := m.GetBackingStore().Set("zoom", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemPreviewPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPage()(*string) - GetZoom()(*float64) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPage(value *string)() - SetZoom(value *float64)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_preview_request_builder.go b/storage/file_storage_containers_item_drive_items_item_preview_request_builder.go deleted file mode 100644 index 6cb4a90f9c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_preview_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemPreviewRequestBuilder provides operations to call the preview method. -type FileStorageContainersItemDriveItemsItemPreviewRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemPreviewRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemPreviewRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemPreviewRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemPreviewRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/preview", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemPreviewRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action preview -// returns a ItemPreviewInfoable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemPreviewPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemPreviewRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemPreviewInfoable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemPreviewInfoFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemPreviewInfoable), nil -} -// ToPostRequestInformation invoke action preview -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemPreviewPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemPreviewRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemPreviewRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemPreviewRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_restore_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_restore_post_request_body.go deleted file mode 100644 index 3543fd7712..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_restore_post_request_body.go +++ /dev/null @@ -1,151 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemRestorePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemRestorePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemRestorePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemRestorePostRequestBody()(*FileStorageContainersItemDriveItemsItemRestorePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemRestorePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemRestorePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemRestorePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemRestorePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["parentReference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemReferenceFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetParentReference(val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetParentReference gets the parentReference property value. The parentReference property -// returns a ItemReferenceable when successful -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) GetParentReference()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) { - val, err := m.GetBackingStore().Get("parentReference") - if err != nil { - panic(err) - } - if val != nil { - return val.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("parentReference", m.GetParentReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetParentReference sets the parentReference property value. The parentReference property -func (m *FileStorageContainersItemDriveItemsItemRestorePostRequestBody) SetParentReference(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() { - err := m.GetBackingStore().Set("parentReference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemRestorePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetName()(*string) - GetParentReference()(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetName(value *string)() - SetParentReference(value iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemReferenceable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_restore_request_builder.go b/storage/file_storage_containers_item_drive_items_item_restore_request_builder.go deleted file mode 100644 index 054a8ec311..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_restore_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemRestoreRequestBuilder provides operations to call the restore method. -type FileStorageContainersItemDriveItemsItemRestoreRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemRestoreRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemRestoreRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemRestoreRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemRestoreRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/restore", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemRestoreRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilderInternal(urlParams, requestAdapter) -} -// Post restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. -// returns a DriveItemable 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/driveitem-restore?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemRestorePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemRestoreRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToPostRequestInformation restore a driveItem that has been deleted and is currently in the recycle bin. NOTE: This functionality is currently only available for OneDrive Personal. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemRestorePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemRestoreRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemRestoreRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_retention_label_request_builder.go b/storage/file_storage_containers_item_drive_items_item_retention_label_request_builder.go deleted file mode 100644 index 6d2424ff7a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_retention_label_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder provides operations to manage the retentionLabel property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetQueryParameters information about retention label and settings enforced on the driveItem. Read-write. -type FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/retentionLabel{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property retentionLabel for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get information about retention label and settings enforced on the driveItem. Read-write. -// returns a ItemRetentionLabelable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemRetentionLabelFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable), nil -} -// Patch update the navigation property retentionLabel in storage -// returns a ItemRetentionLabelable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemRetentionLabelFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable), nil -} -// ToDeleteRequestInformation delete navigation property retentionLabel for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation information about retention label and settings enforced on the driveItem. Read-write. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property retentionLabel in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemRetentionLabelable, requestConfiguration *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemRetentionLabelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_search_with_q_get_response.go b/storage/file_storage_containers_item_drive_items_item_search_with_q_get_response.go deleted file mode 100644 index c9eece339b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_search_with_q_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveItemsItemSearchWithQGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveItemsItemSearchWithQGetResponse instantiates a new FileStorageContainersItemDriveItemsItemSearchWithQGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSearchWithQGetResponse()(*FileStorageContainersItemDriveItemsItemSearchWithQGetResponse) { - m := &FileStorageContainersItemDriveItemsItemSearchWithQGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemSearchWithQGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemSearchWithQGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemSearchWithQGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemSearchWithQGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveItemsItemSearchWithQGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemSearchWithQGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemSearchWithQGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_search_with_q_request_builder.go b/storage/file_storage_containers_item_drive_items_item_search_with_q_request_builder.go deleted file mode 100644 index b72ddcc1aa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_search_with_q_request_builder.go +++ /dev/null @@ -1,122 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder provides operations to call the search method. -type FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetQueryParameters search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -type FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, q *string)(*FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if q != nil { - m.BaseRequestBuilder.PathParameters["q"] = *q - } - return m -} -// NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// Deprecated: This method is obsolete. Use GetAsSearchWithQGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemSearchWithQResponseable 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/driveitem-search?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemSearchWithQResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemSearchWithQResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemSearchWithQResponseable), nil -} -// GetAsSearchWithQGetResponse search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// returns a FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable 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/driveitem-search?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) GetAsSearchWithQGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemSearchWithQGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable), nil -} -// ToGetRequestInformation search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSearchWithQRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_search_with_q_response.go b/storage/file_storage_containers_item_drive_items_item_search_with_q_response.go deleted file mode 100644 index 21ee0b6766..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_search_with_q_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable instead. -type FileStorageContainersItemDriveItemsItemSearchWithQResponse struct { - FileStorageContainersItemDriveItemsItemSearchWithQGetResponse -} -// NewFileStorageContainersItemDriveItemsItemSearchWithQResponse instantiates a new FileStorageContainersItemDriveItemsItemSearchWithQResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSearchWithQResponse()(*FileStorageContainersItemDriveItemsItemSearchWithQResponse) { - m := &FileStorageContainersItemDriveItemsItemSearchWithQResponse{ - FileStorageContainersItemDriveItemsItemSearchWithQGetResponse: *NewFileStorageContainersItemDriveItemsItemSearchWithQGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemSearchWithQResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemSearchWithQResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemSearchWithQResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable instead. -type FileStorageContainersItemDriveItemsItemSearchWithQResponseable interface { - FileStorageContainersItemDriveItemsItemSearchWithQGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_subscriptions_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_subscriptions_count_request_builder.go deleted file mode 100644 index 15186cf3cb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_subscriptions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_subscriptions_item_reauthorize_request_builder.go b/storage/file_storage_containers_item_drive_items_item_subscriptions_item_reauthorize_request_builder.go deleted file mode 100644 index f5ad3286ac..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_subscriptions_item_reauthorize_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder provides operations to call the reauthorize method. -type FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}/reauthorize", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reauthorize a subscription when you receive a reauthorizationRequired challenge. -// 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/subscription-reauthorize?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reauthorize a subscription when you receive a reauthorizationRequired challenge. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_subscriptions_request_builder.go b/storage/file_storage_containers_item_drive_items_item_subscriptions_request_builder.go deleted file mode 100644 index a447e0a14c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_subscriptions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetQueryParameters the set of subscriptions on the item. Only supported on the root of a drive. -type FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// BySubscriptionId provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) BySubscriptionId(subscriptionId string)(*FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if subscriptionId != "" { - urlTplParams["subscription%2Did"] = subscriptionId - } - return NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the set of subscriptions on the item. Only supported on the root of a drive. -// returns a SubscriptionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SubscriptionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SubscriptionCollectionResponseable), nil -} -// Post create new navigation property to subscriptions for storage -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// ToGetRequestInformation the set of subscriptions on the item. Only supported on the root of a drive. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to subscriptions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_subscriptions_subscription_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_subscriptions_subscription_item_request_builder.go deleted file mode 100644 index 7c130b6dad..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_subscriptions_subscription_item_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder provides operations to manage the subscriptions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters the set of subscriptions on the item. Only supported on the root of a drive. -type FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/subscriptions/{subscription%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property subscriptions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the set of subscriptions on the item. Only supported on the root of a drive. -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// Patch update the navigation property subscriptions in storage -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// Reauthorize provides operations to call the reauthorize method. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) Reauthorize()(*FileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsItemReauthorizeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property subscriptions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the set of subscriptions on the item. Only supported on the root of a drive. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property subscriptions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemSubscriptionsSubscriptionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_thumbnails_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_thumbnails_count_request_builder.go deleted file mode 100644 index 1f6fae50a4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_thumbnails_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_thumbnails_request_builder.go b/storage/file_storage_containers_item_drive_items_item_thumbnails_request_builder.go deleted file mode 100644 index 68c4643253..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_thumbnails_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetQueryParameters collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByThumbnailSetId provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) ByThumbnailSetId(thumbnailSetId string)(*FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if thumbnailSetId != "" { - urlTplParams["thumbnailSet%2Did"] = thumbnailSetId - } - return NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemThumbnailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -// returns a ThumbnailSetCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateThumbnailSetCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetCollectionResponseable), nil -} -// Post create new navigation property to thumbnails for storage -// returns a ThumbnailSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateThumbnailSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable), nil -} -// ToGetRequestInformation collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to thumbnails for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemThumbnailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_thumbnails_thumbnail_set_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_thumbnails_thumbnail_set_item_request_builder.go deleted file mode 100644 index a1e6647971..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_thumbnails_thumbnail_set_item_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder provides operations to manage the thumbnails property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetQueryParameters collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/thumbnails/{thumbnailSet%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property thumbnails for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -// returns a ThumbnailSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateThumbnailSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable), nil -} -// Patch update the navigation property thumbnails in storage -// returns a ThumbnailSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateThumbnailSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable), nil -} -// ToDeleteRequestInformation delete navigation property thumbnails for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation collection of thumbnailSet objects associated with the item. For more information, see getting thumbnails. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property thumbnails in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ThumbnailSetable, requestConfiguration *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemThumbnailsThumbnailSetItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_unfollow_request_builder.go b/storage/file_storage_containers_item_drive_items_item_unfollow_request_builder.go deleted file mode 100644 index 51b5f031d5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_unfollow_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder provides operations to call the unfollow method. -type FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemUnfollowRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemUnfollowRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/unfollow", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilderInternal(urlParams, requestAdapter) -} -// Post unfollow a driveItem. -// 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/driveitem-unfollow?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation unfollow a driveItem. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemUnfollowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemUnfollowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_validate_permission_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_validate_permission_post_request_body.go deleted file mode 100644 index 432c3e0d4c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_validate_permission_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody()(*FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetChallengeToken gets the challengeToken property value. The challengeToken property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) GetChallengeToken()(*string) { - val, err := m.GetBackingStore().Get("challengeToken") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["challengeToken"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetChallengeToken(val) - } - return nil - } - res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPassword(val) - } - return nil - } - return res -} -// GetPassword gets the password property value. The password property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) GetPassword()(*string) { - val, err := m.GetBackingStore().Get("password") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("challengeToken", m.GetChallengeToken()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("password", m.GetPassword()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetChallengeToken sets the challengeToken property value. The challengeToken property -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) SetChallengeToken(value *string)() { - err := m.GetBackingStore().Set("challengeToken", value) - if err != nil { - panic(err) - } -} -// SetPassword sets the password property value. The password property -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBody) SetPassword(value *string)() { - err := m.GetBackingStore().Set("password", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetChallengeToken()(*string) - GetPassword()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetChallengeToken(value *string)() - SetPassword(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_validate_permission_request_builder.go b/storage/file_storage_containers_item_drive_items_item_validate_permission_request_builder.go deleted file mode 100644 index 94a1d7e28d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_validate_permission_request_builder.go +++ /dev/null @@ -1,68 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder provides operations to call the validatePermission method. -type FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/validatePermission", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action validatePermission -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation invoke action validatePermission -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemValidatePermissionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemValidatePermissionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_versions_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_versions_count_request_builder.go deleted file mode 100644 index 1a9a679353..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_versions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_versions_drive_item_version_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_versions_drive_item_version_item_request_builder.go deleted file mode 100644 index 3532995e27..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_versions_drive_item_version_item_request_builder.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder provides operations to manage the versions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetQueryParameters the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) Content()(*FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property versions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -// returns a DriveItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable), nil -} -// Patch update the navigation property versions in storage -// returns a DriveItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable), nil -} -// RestoreVersion provides operations to call the restoreVersion method. -// returns a *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) RestoreVersion()(*FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property versions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property versions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_versions_item_content_request_builder.go b/storage/file_storage_containers_item_drive_items_item_versions_item_content_request_builder.go deleted file mode 100644 index 621faf5b6d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_versions_item_content_request_builder.go +++ /dev/null @@ -1,142 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/content", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream for this version of the item. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream for this version of the item. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream for this version of the item. -// returns a DriveItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable), nil -} -// ToDeleteRequestInformation the content stream for this version of the item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream for this version of the item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream for this version of the item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_versions_item_restore_version_request_builder.go b/storage/file_storage_containers_item_drive_items_item_versions_item_restore_version_request_builder.go deleted file mode 100644 index 6955f3e37a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_versions_item_restore_version_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder provides operations to call the restoreVersion method. -type FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions/{driveItemVersion%2Did}/restoreVersion", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. -// 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/driveitemversion-restore?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation restore a previous version of a DriveItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsItemRestoreVersionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_versions_request_builder.go b/storage/file_storage_containers_item_drive_items_item_versions_request_builder.go deleted file mode 100644 index 4c0ec56475..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_versions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemVersionsRequestBuilder provides operations to manage the versions property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemVersionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetQueryParameters the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -type FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemVersionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemVersionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByDriveItemVersionId provides operations to manage the versions property of the microsoft.graph.driveItem entity. -// returns a *FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) ByDriveItemVersionId(driveItemVersionId string)(*FileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemVersionId != "" { - urlTplParams["driveItemVersion%2Did"] = driveItemVersionId - } - return NewFileStorageContainersItemDriveItemsItemVersionsDriveItemVersionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemVersionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -// returns a DriveItemVersionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemVersionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionCollectionResponseable), nil -} -// Post create new navigation property to versions for storage -// returns a DriveItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable), nil -} -// ToGetRequestInformation the list of previous versions of the item. For more info, see getting previous versions. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to versions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemVersionable, requestConfiguration *FileStorageContainersItemDriveItemsItemVersionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemVersionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_post_request_body.go deleted file mode 100644 index 9485794700..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCalculationType gets the calculationType property value. The calculationType property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) GetCalculationType()(*string) { - val, err := m.GetBackingStore().Get("calculationType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["calculationType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetCalculationType(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("calculationType", m.GetCalculationType()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCalculationType sets the calculationType property value. The calculationType property -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBody) SetCalculationType(value *string)() { - err := m.GetBackingStore().Set("calculationType", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCalculationType()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCalculationType(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_request_builder.go deleted file mode 100644 index e6bad305ff..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_application_calculate_request_builder.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder provides operations to call the calculate method. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application/calculate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post recalculate all currently opened workbooks in Excel. -// 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/workbookapplication-calculate?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation recalculate all currently opened workbooks in Excel. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_application_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_application_request_builder.go deleted file mode 100644 index a77b715f9f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_application_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder provides operations to manage the application property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetQueryParameters get application from storage -type FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Calculate provides operations to call the calculate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) Calculate()(*FileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationCalculateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/application{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property application for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get get application from storage -// returns a WorkbookApplicationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookApplicationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable), nil -} -// Patch update the navigation property application in storage -// returns a WorkbookApplicationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookApplicationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable), nil -} -// ToDeleteRequestInformation delete navigation property application for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation get application from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property application in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookApplicationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_close_session_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_close_session_request_builder.go deleted file mode 100644 index d0d63d1a8a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_close_session_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder provides operations to call the closeSession method. -type FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/closeSession", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post use this API to close an existing workbook session. -// 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/workbook-closesession?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation use this API to close an existing workbook session. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_comments_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_comments_count_request_builder.go deleted file mode 100644 index d0f7c844d7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_comments_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_count_request_builder.go deleted file mode 100644 index b725d73488..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_request_builder.go deleted file mode 100644 index d71d42c6b9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_comments_item_replies_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder provides operations to manage the replies property of the microsoft.graph.workbookComment entity. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters get replies from storage -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookCommentReplyId provides operations to manage the replies property of the microsoft.graph.workbookComment entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) ByWorkbookCommentReplyId(workbookCommentReplyId string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookCommentReplyId != "" { - urlTplParams["workbookCommentReply%2Did"] = workbookCommentReplyId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments/{workbookComment%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get get replies from storage -// returns a WorkbookCommentReplyCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentReplyCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyCollectionResponseable), nil -} -// Post create new navigation property to replies for storage -// returns a WorkbookCommentReplyable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentReplyFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable), nil -} -// ToGetRequestInformation get replies from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to replies for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentReplyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsItemRepliesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_comments_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_comments_request_builder.go deleted file mode 100644 index 1200be845e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_comments_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder provides operations to manage the comments property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetQueryParameters represents a collection of comments in a workbook. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookCommentId provides operations to manage the comments property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) ByWorkbookCommentId(workbookCommentId string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookCommentId != "" { - urlTplParams["workbookComment%2Did"] = workbookCommentId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsWorkbookCommentItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/comments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of comments in a workbook. -// returns a WorkbookCommentCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentCollectionResponseable), nil -} -// Post create new navigation property to comments for storage -// returns a WorkbookCommentable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookCommentFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable), nil -} -// ToGetRequestInformation represents a collection of comments in a workbook. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to comments for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookCommentable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_create_session_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_create_session_post_request_body.go deleted file mode 100644 index 835306baab..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_create_session_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["persistChanges"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetPersistChanges(val) - } - return nil - } - return res -} -// GetPersistChanges gets the persistChanges property value. The persistChanges property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) GetPersistChanges()(*bool) { - val, err := m.GetBackingStore().Get("persistChanges") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("persistChanges", m.GetPersistChanges()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPersistChanges sets the persistChanges property value. The persistChanges property -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBody) SetPersistChanges(value *bool)() { - err := m.GetBackingStore().Set("persistChanges", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPersistChanges()(*bool) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPersistChanges(value *bool)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_create_session_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_create_session_request_builder.go deleted file mode 100644 index 9765782fd1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_create_session_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder provides operations to call the createSession method. -type FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/createSession", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: -// returns a WorkbookSessionInfoable 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/workbook-createsession?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSessionInfoable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookSessionInfoFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSessionInfoable), nil -} -// ToPostRequestInformation create a new workbook session. Excel APIs can be called in one of two modes: To represent the session in the API, use the workbook-session-id: {session-id} header. In some cases, creating a new session requires an indeterminate time to complete. Microsoft Graph also provides a long running operations pattern. This pattern provides a way to poll for creation status updates, without waiting for the creation to complete. The following are the steps: -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookCreateSessionPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_post_request_body.go deleted file mode 100644 index a5c4854d1f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_request_builder.go deleted file mode 100644 index 63c3f31ee4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_abs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder provides operations to call the abs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/abs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action abs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action abs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_post_request_body.go deleted file mode 100644 index 4ac91cb48a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["par"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPar(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPar gets the par property value. The par property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetPar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("par") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("par", m.GetPar()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetPar sets the par property value. The par property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetPar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("par", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_request_builder.go deleted file mode 100644 index 38f8bb5b33..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_m_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder provides operations to call the accrIntM method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrIntM", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action accrIntM -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action accrIntM -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_post_request_body.go deleted file mode 100644 index 76d3586f14..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_post_request_body.go +++ /dev/null @@ -1,372 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCalcMethod gets the calcMethod property value. The calcMethod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetCalcMethod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("calcMethod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["calcMethod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCalcMethod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["firstInterest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFirstInterest(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["par"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPar(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFirstInterest gets the firstInterest property value. The firstInterest property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetFirstInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("firstInterest") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPar gets the par property value. The par property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetPar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("par") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("calcMethod", m.GetCalcMethod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("firstInterest", m.GetFirstInterest()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("par", m.GetPar()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetCalcMethod sets the calcMethod property value. The calcMethod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetCalcMethod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("calcMethod", value) - if err != nil { - panic(err) - } -} -// SetFirstInterest sets the firstInterest property value. The firstInterest property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetFirstInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("firstInterest", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetPar sets the par property value. The par property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetPar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("par", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCalcMethod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFirstInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCalcMethod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFirstInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_request_builder.go deleted file mode 100644 index 06363a0552..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_accr_int_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder provides operations to call the accrInt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/accrInt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action accrInt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action accrInt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_post_request_body.go deleted file mode 100644 index 55879e22fc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_request_builder.go deleted file mode 100644 index cd5c4565a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acos_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder provides operations to call the acos method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acos", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action acos -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action acos -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_post_request_body.go deleted file mode 100644 index c3cf0eb3c5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_request_builder.go deleted file mode 100644 index 46d4677cc7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acosh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder provides operations to call the acosh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acosh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action acosh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action acosh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_post_request_body.go deleted file mode 100644 index e0cc3cf398..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_request_builder.go deleted file mode 100644 index 37a22b51fb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acot_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder provides operations to call the acot method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acot", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action acot -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action acot -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_post_request_body.go deleted file mode 100644 index 3439cfd17a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_request_builder.go deleted file mode 100644 index cfe1dff7bb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_acoth_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder provides operations to call the acoth method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/acoth", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action acoth -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action acoth -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_post_request_body.go deleted file mode 100644 index b025e8688e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_post_request_body.go +++ /dev/null @@ -1,335 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatePurchased gets the datePurchased property value. The datePurchased property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetDatePurchased()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("datePurchased") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["datePurchased"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatePurchased(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["firstPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFirstPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["period"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFirstPeriod gets the firstPeriod property value. The firstPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetFirstPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("firstPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPeriod gets the period property value. The period property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("period") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("datePurchased", m.GetDatePurchased()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("firstPeriod", m.GetFirstPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("period", m.GetPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetDatePurchased sets the datePurchased property value. The datePurchased property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetDatePurchased(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("datePurchased", value) - if err != nil { - panic(err) - } -} -// SetFirstPeriod sets the firstPeriod property value. The firstPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetFirstPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("firstPeriod", value) - if err != nil { - panic(err) - } -} -// SetPeriod sets the period property value. The period property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("period", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatePurchased()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFirstPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatePurchased(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFirstPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_request_builder.go deleted file mode 100644 index fcba5fb82e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_degrc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder provides operations to call the amorDegrc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorDegrc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action amorDegrc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action amorDegrc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_post_request_body.go deleted file mode 100644 index 2f80310d19..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_post_request_body.go +++ /dev/null @@ -1,335 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatePurchased gets the datePurchased property value. The datePurchased property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetDatePurchased()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("datePurchased") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["datePurchased"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatePurchased(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["firstPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFirstPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["period"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFirstPeriod gets the firstPeriod property value. The firstPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetFirstPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("firstPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPeriod gets the period property value. The period property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("period") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("datePurchased", m.GetDatePurchased()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("firstPeriod", m.GetFirstPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("period", m.GetPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetDatePurchased sets the datePurchased property value. The datePurchased property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetDatePurchased(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("datePurchased", value) - if err != nil { - panic(err) - } -} -// SetFirstPeriod sets the firstPeriod property value. The firstPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetFirstPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("firstPeriod", value) - if err != nil { - panic(err) - } -} -// SetPeriod sets the period property value. The period property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("period", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatePurchased()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFirstPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatePurchased(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFirstPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_request_builder.go deleted file mode 100644 index 72aa209aac..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_amor_linc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder provides operations to call the amorLinc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/amorLinc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action amorLinc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action amorLinc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_post_request_body.go deleted file mode 100644 index 313cf30538..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_request_builder.go deleted file mode 100644 index 91a5531b17..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_and_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder provides operations to call the and method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/and", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action and -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action and -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_post_request_body.go deleted file mode 100644 index db6e64167f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_request_builder.go deleted file mode 100644 index bbe1367bb4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_arabic_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder provides operations to call the arabic method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/arabic", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action arabic -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action arabic -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_post_request_body.go deleted file mode 100644 index 0335f50758..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["reference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReference(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetReference gets the reference property value. The reference property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reference") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("reference", m.GetReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetReference sets the reference property value. The reference property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBody) SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_request_builder.go deleted file mode 100644 index 75bb1687a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_areas_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder provides operations to call the areas method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/areas", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action areas -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action areas -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_post_request_body.go deleted file mode 100644 index 6fd2853b61..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_request_builder.go deleted file mode 100644 index 20679af9dd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder provides operations to call the asc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action asc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action asc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_post_request_body.go deleted file mode 100644 index 94168366a8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_request_builder.go deleted file mode 100644 index d22be92bce..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder provides operations to call the asin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action asin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action asin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_post_request_body.go deleted file mode 100644 index d7253b0ad8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_request_builder.go deleted file mode 100644 index 5ccd0c205d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_asinh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder provides operations to call the asinh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/asinh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action asinh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action asinh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_post_request_body.go deleted file mode 100644 index 387c92448c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["xNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetXNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetXNum gets the xNum property value. The xNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) GetXNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("xNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYNum gets the yNum property value. The yNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) GetYNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("xNum", m.GetXNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yNum", m.GetYNum()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetXNum sets the xNum property value. The xNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) SetXNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("xNum", value) - if err != nil { - panic(err) - } -} -// SetYNum sets the yNum property value. The yNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBody) SetYNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yNum", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetXNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetXNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_request_builder.go deleted file mode 100644 index 040ff1453f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan2_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder provides operations to call the atan2 method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan2", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action atan2 -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action atan2 -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_post_request_body.go deleted file mode 100644 index 93f8da35e2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_request_builder.go deleted file mode 100644 index 672240d541..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atan_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder provides operations to call the atan method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atan", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action atan -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action atan -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_post_request_body.go deleted file mode 100644 index ae4ab2776c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_request_builder.go deleted file mode 100644 index a52cf8fe8d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_atanh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder provides operations to call the atanh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/atanh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action atanh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action atanh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_post_request_body.go deleted file mode 100644 index 313576d802..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_request_builder.go deleted file mode 100644 index 8d2b3f468f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ave_dev_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder provides operations to call the aveDev method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/aveDev", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action aveDev -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action aveDev -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_post_request_body.go deleted file mode 100644 index 6d9d56e743..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_request_builder.go deleted file mode 100644 index c4357e3e65..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder provides operations to call the averageA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action averageA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action averageA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_post_request_body.go deleted file mode 100644 index 3aeb525557..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAverageRange gets the averageRange property value. The averageRange property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetAverageRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("averageRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["averageRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAverageRange(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["range"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRangeEscaped gets the range property value. The range property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("averageRange", m.GetAverageRange()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("range", m.GetRangeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAverageRange sets the averageRange property value. The averageRange property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) SetAverageRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("averageRange", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetRangeEscaped sets the range property value. The range property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBody) SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAverageRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAverageRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_request_builder.go deleted file mode 100644 index 8f361ac949..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_if_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder provides operations to call the averageIf method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIf", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action averageIf -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action averageIf -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_post_request_body.go deleted file mode 100644 index ed43dd3060..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAverageRange gets the averageRange property value. The averageRange property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) GetAverageRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("averageRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["averageRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAverageRange(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("averageRange", m.GetAverageRange()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAverageRange sets the averageRange property value. The averageRange property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) SetAverageRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("averageRange", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAverageRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAverageRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_request_builder.go deleted file mode 100644 index a970d8d9f9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_ifs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder provides operations to call the averageIfs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/averageIfs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action averageIfs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action averageIfs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_post_request_body.go deleted file mode 100644 index 0b839a5130..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_request_builder.go deleted file mode 100644 index 3b387908b6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_average_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder provides operations to call the average method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/average", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action average -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action average -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveragePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_post_request_body.go deleted file mode 100644 index 033b0f7a7b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_request_builder.go deleted file mode 100644 index bb5b9c584a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_baht_text_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder provides operations to call the bahtText method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bahtText", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bahtText -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bahtText -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_post_request_body.go deleted file mode 100644 index 7fe96cb911..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["minLength"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMinLength(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["radix"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRadix(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMinLength gets the minLength property value. The minLength property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetMinLength()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("minLength") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRadix gets the radix property value. The radix property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) GetRadix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("radix") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("minLength", m.GetMinLength()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("radix", m.GetRadix()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMinLength sets the minLength property value. The minLength property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) SetMinLength(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("minLength", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetRadix sets the radix property value. The radix property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBody) SetRadix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("radix", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMinLength()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRadix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMinLength(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRadix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_request_builder.go deleted file mode 100644 index c4f7960ead..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_base_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder provides operations to call the base method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/base", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action base -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action base -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBasePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_post_request_body.go deleted file mode 100644 index 3582b07f29..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["n"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetN(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetN gets the n property value. The n property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("n") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("n", m.GetN()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetN sets the n property value. The n property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("n", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_request_builder.go deleted file mode 100644 index fb26b226f0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_i_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder provides operations to call the besselI method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselI", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action besselI -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action besselI -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_post_request_body.go deleted file mode 100644 index f555451a29..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["n"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetN(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetN gets the n property value. The n property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("n") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("n", m.GetN()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetN sets the n property value. The n property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("n", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_request_builder.go deleted file mode 100644 index ccf149c2d8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_j_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder provides operations to call the besselJ method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselJ", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action besselJ -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action besselJ -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_post_request_body.go deleted file mode 100644 index f6e478eac3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["n"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetN(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetN gets the n property value. The n property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("n") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("n", m.GetN()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetN sets the n property value. The n property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("n", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_request_builder.go deleted file mode 100644 index e915e91077..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_k_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder provides operations to call the besselK method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselK", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action besselK -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action besselK -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_post_request_body.go deleted file mode 100644 index b5bb8ff60c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["n"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetN(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetN gets the n property value. The n property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("n") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("n", m.GetN()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetN sets the n property value. The n property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("n", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_request_builder.go deleted file mode 100644 index a4abc118bf..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bessel_y_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder provides operations to call the besselY method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/besselY", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action besselY -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action besselY -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_post_request_body.go deleted file mode 100644 index bd74baf5d8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody(), nil -} -// GetA gets the A property value. The A property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetA()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("a") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetB gets the B property value. The B property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetB()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("b") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBeta gets the beta property value. The beta property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("beta") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["A"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetA(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["B"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["beta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBeta(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("A", m.GetA()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("B", m.GetB()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("beta", m.GetBeta()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetA sets the A property value. The A property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetA(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("a", value) - if err != nil { - panic(err) - } -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetB sets the B property value. The B property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetB(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("b", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBeta sets the beta property value. The beta property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("beta", value) - if err != nil { - panic(err) - } -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetA()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetB()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetA(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetB(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_request_builder.go deleted file mode 100644 index 5d8a34957f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder provides operations to call the beta_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action beta_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action beta_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_post_request_body.go deleted file mode 100644 index f8993ae48a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody(), nil -} -// GetA gets the A property value. The A property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetA()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("a") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetB gets the B property value. The B property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetB()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("b") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBeta gets the beta property value. The beta property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("beta") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["A"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetA(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["B"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetB(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["beta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBeta(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("A", m.GetA()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("B", m.GetB()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("beta", m.GetBeta()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetA sets the A property value. The A property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetA(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("a", value) - if err != nil { - panic(err) - } -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetB sets the B property value. The B property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetB(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("b", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBeta sets the beta property value. The beta property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("beta", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetA()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetB()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetA(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetB(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_request_builder.go deleted file mode 100644 index 6952b6f3d3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_beta_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder provides operations to call the beta_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/beta_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action beta_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action beta_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_post_request_body.go deleted file mode 100644 index 64f3325fb0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_request_builder.go deleted file mode 100644 index 0c40864ce9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_dec_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder provides operations to call the bin2Dec method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Dec", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bin2Dec -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bin2Dec -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_post_request_body.go deleted file mode 100644 index 7726197c69..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_request_builder.go deleted file mode 100644 index 4425ea0813..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_hex_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder provides operations to call the bin2Hex method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Hex", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bin2Hex -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bin2Hex -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_post_request_body.go deleted file mode 100644 index 1ddb9f7509..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_request_builder.go deleted file mode 100644 index c8493a3026..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bin2_oct_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder provides operations to call the bin2Oct method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bin2Oct", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bin2Oct -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bin2Oct -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_post_request_body.go deleted file mode 100644 index d2da323707..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probabilityS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbabilityS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["trials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTrials(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumberS gets the numberS property value. The numberS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetProbabilityS gets the probabilityS property value. The probabilityS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probabilityS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTrials gets the trials property value. The trials property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("trials") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberS", m.GetNumberS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probabilityS", m.GetProbabilityS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("trials", m.GetTrials()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetNumberS sets the numberS property value. The numberS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberS", value) - if err != nil { - panic(err) - } -} -// SetProbabilityS sets the probabilityS property value. The probabilityS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probabilityS", value) - if err != nil { - panic(err) - } -} -// SetTrials sets the trials property value. The trials property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBody) SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("trials", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_post_request_body.go deleted file mode 100644 index 1419d05b10..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numberS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberS2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberS2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probabilityS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbabilityS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["trials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTrials(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumberS gets the numberS property value. The numberS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberS2 gets the numberS2 property value. The numberS2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetNumberS2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberS2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetProbabilityS gets the probabilityS property value. The probabilityS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probabilityS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTrials gets the trials property value. The trials property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("trials") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numberS", m.GetNumberS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberS2", m.GetNumberS2()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probabilityS", m.GetProbabilityS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("trials", m.GetTrials()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumberS sets the numberS property value. The numberS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberS", value) - if err != nil { - panic(err) - } -} -// SetNumberS2 sets the numberS2 property value. The numberS2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetNumberS2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberS2", value) - if err != nil { - panic(err) - } -} -// SetProbabilityS sets the probabilityS property value. The probabilityS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probabilityS", value) - if err != nil { - panic(err) - } -} -// SetTrials sets the trials property value. The trials property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBody) SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("trials", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberS2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberS2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_request_builder.go deleted file mode 100644 index 29635c2712..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_range_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder provides operations to call the binom_Dist_Range method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist_Range", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action binom_Dist_Range -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action binom_Dist_Range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_request_builder.go deleted file mode 100644 index 2a36cfca1a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder provides operations to call the binom_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action binom_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action binom_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_post_request_body.go deleted file mode 100644 index 47fd411d5b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probabilityS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbabilityS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["trials"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTrials(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbabilityS gets the probabilityS property value. The probabilityS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probabilityS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTrials gets the trials property value. The trials property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("trials") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probabilityS", m.GetProbabilityS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("trials", m.GetTrials()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetProbabilityS sets the probabilityS property value. The probabilityS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probabilityS", value) - if err != nil { - panic(err) - } -} -// SetTrials sets the trials property value. The trials property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBody) SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("trials", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTrials()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTrials(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_request_builder.go deleted file mode 100644 index 9066db72cd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_binom_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder provides operations to call the binom_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/binom_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action binom_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action binom_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_post_request_body.go deleted file mode 100644 index 138e9b6ad2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber1 gets the number1 property value. The number1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber2 gets the number2 property value. The number2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number1", m.GetNumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number2", m.GetNumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber1 sets the number1 property value. The number1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number1", value) - if err != nil { - panic(err) - } -} -// SetNumber2 sets the number2 property value. The number2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBody) SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_request_builder.go deleted file mode 100644 index 00e28d1ea6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitand_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder provides operations to call the bitand method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitand", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bitand -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bitand -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_post_request_body.go deleted file mode 100644 index 122cff680a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["shiftAmount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetShiftAmount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetShiftAmount gets the shiftAmount property value. The shiftAmount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) GetShiftAmount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("shiftAmount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("shiftAmount", m.GetShiftAmount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetShiftAmount sets the shiftAmount property value. The shiftAmount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBody) SetShiftAmount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("shiftAmount", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetShiftAmount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetShiftAmount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_request_builder.go deleted file mode 100644 index b9a56a1720..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitlshift_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder provides operations to call the bitlshift method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitlshift", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bitlshift -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bitlshift -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_post_request_body.go deleted file mode 100644 index f5c78142a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber1 gets the number1 property value. The number1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber2 gets the number2 property value. The number2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number1", m.GetNumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number2", m.GetNumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber1 sets the number1 property value. The number1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number1", value) - if err != nil { - panic(err) - } -} -// SetNumber2 sets the number2 property value. The number2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBody) SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_request_builder.go deleted file mode 100644 index f3254add76..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitor_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder provides operations to call the bitor method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bitor -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bitor -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_post_request_body.go deleted file mode 100644 index 3cac28c342..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["shiftAmount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetShiftAmount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetShiftAmount gets the shiftAmount property value. The shiftAmount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) GetShiftAmount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("shiftAmount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("shiftAmount", m.GetShiftAmount()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetShiftAmount sets the shiftAmount property value. The shiftAmount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBody) SetShiftAmount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("shiftAmount", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetShiftAmount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetShiftAmount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_request_builder.go deleted file mode 100644 index c9536aea89..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitrshift_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder provides operations to call the bitrshift method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitrshift", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bitrshift -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bitrshift -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_post_request_body.go deleted file mode 100644 index f408880279..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber1 gets the number1 property value. The number1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber2 gets the number2 property value. The number2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number1", m.GetNumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number2", m.GetNumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber1 sets the number1 property value. The number1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number1", value) - if err != nil { - panic(err) - } -} -// SetNumber2 sets the number2 property value. The number2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBody) SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_request_builder.go deleted file mode 100644 index d3011265e5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_bitxor_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder provides operations to call the bitxor method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/bitxor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action bitxor -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action bitxor -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_post_request_body.go deleted file mode 100644 index a534a7a70e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMode gets the mode property value. The mode property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetMode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mode") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("mode", m.GetMode()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMode sets the mode property value. The mode property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) SetMode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mode", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_request_builder.go deleted file mode 100644 index e7f95730c5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_math_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder provides operations to call the ceiling_Math method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Math", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ceiling_Math -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ceiling_Math -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_post_request_body.go deleted file mode 100644 index 71514fbf74..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_request_builder.go deleted file mode 100644 index 2398af6ab6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ceiling_precise_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder provides operations to call the ceiling_Precise method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ceiling_Precise", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ceiling_Precise -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ceiling_Precise -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_post_request_body.go deleted file mode 100644 index 633c7c3c44..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_request_builder.go deleted file mode 100644 index 6900b2a778..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_char_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder provides operations to call the char method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/char", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action char -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action char -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_post_request_body.go deleted file mode 100644 index 38760dc1fe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_post_request_body.go deleted file mode 100644 index c859f03b3f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_request_builder.go deleted file mode 100644 index 88701aedf2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_r_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder provides operations to call the chiSq_Dist_RT method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist_RT", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action chiSq_Dist_RT -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action chiSq_Dist_RT -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_request_builder.go deleted file mode 100644 index 75d0242afa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder provides operations to call the chiSq_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action chiSq_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action chiSq_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_post_request_body.go deleted file mode 100644 index 92e9087ad9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_post_request_body.go deleted file mode 100644 index cc282e3cf1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_request_builder.go deleted file mode 100644 index f61847f525..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_r_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder provides operations to call the chiSq_Inv_RT method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv_RT", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action chiSq_Inv_RT -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action chiSq_Inv_RT -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_request_builder.go deleted file mode 100644 index d611d8e411..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_chi_sq_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder provides operations to call the chiSq_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/chiSq_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action chiSq_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action chiSq_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_post_request_body.go deleted file mode 100644 index 8b310baed0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["indexNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIndexNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIndexNum gets the indexNum property value. The indexNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) GetIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("indexNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("indexNum", m.GetIndexNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIndexNum sets the indexNum property value. The indexNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) SetIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("indexNum", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_request_builder.go deleted file mode 100644 index 54e1469980..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_choose_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder provides operations to call the choose method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/choose", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action choose -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action choose -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsChoosePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_post_request_body.go deleted file mode 100644 index 4b0a89f18c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_request_builder.go deleted file mode 100644 index 8519c893ad..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_clean_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder provides operations to call the clean method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/clean", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action clean -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action clean -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_post_request_body.go deleted file mode 100644 index 378a7f0acb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_request_builder.go deleted file mode 100644 index bf40d80314..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_code_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder provides operations to call the code method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/code", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action code -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action code -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_post_request_body.go deleted file mode 100644 index 2eec0b9508..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_request_builder.go deleted file mode 100644 index c9b302cd04..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_columns_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder provides operations to call the columns method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/columns", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action columns -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action columns -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_post_request_body.go deleted file mode 100644 index 4cfa9ceaef..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberChosen"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberChosen(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberChosen gets the numberChosen property value. The numberChosen property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberChosen") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberChosen", m.GetNumberChosen()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumberChosen sets the numberChosen property value. The numberChosen property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBody) SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberChosen", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_request_builder.go deleted file mode 100644 index 46a410c44b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder provides operations to call the combin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action combin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action combin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_post_request_body.go deleted file mode 100644 index 99d028cdfc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberChosen"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberChosen(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberChosen gets the numberChosen property value. The numberChosen property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberChosen") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberChosen", m.GetNumberChosen()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumberChosen sets the numberChosen property value. The numberChosen property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBody) SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberChosen", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_request_builder.go deleted file mode 100644 index 3e911213a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_combina_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder provides operations to call the combina method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/combina", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action combina -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action combina -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_post_request_body.go deleted file mode 100644 index 768a423606..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["iNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetINum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["realNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRealNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["suffix"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSuffix(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetINum gets the iNum property value. The iNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetINum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("iNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRealNum gets the realNum property value. The realNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetRealNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("realNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSuffix gets the suffix property value. The suffix property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) GetSuffix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("suffix") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("iNum", m.GetINum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("realNum", m.GetRealNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("suffix", m.GetSuffix()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetINum sets the iNum property value. The iNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) SetINum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("iNum", value) - if err != nil { - panic(err) - } -} -// SetRealNum sets the realNum property value. The realNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) SetRealNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("realNum", value) - if err != nil { - panic(err) - } -} -// SetSuffix sets the suffix property value. The suffix property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBody) SetSuffix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("suffix", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetINum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRealNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSuffix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetINum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRealNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSuffix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_request_builder.go deleted file mode 100644 index b996f71ccd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_complex_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder provides operations to call the complex method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/complex", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action complex -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action complex -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_post_request_body.go deleted file mode 100644 index 1d30e38e91..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_request_builder.go deleted file mode 100644 index 7e6e552d7a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_concatenate_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder provides operations to call the concatenate method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/concatenate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action concatenate -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action concatenate -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_post_request_body.go deleted file mode 100644 index de2982edeb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSize(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSize gets the size property value. The size property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetSize()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("size") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("size", m.GetSize()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSize sets the size property value. The size property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) SetSize(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("size", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSize()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSize(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_request_builder.go deleted file mode 100644 index a834a28a86..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_norm_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder provides operations to call the confidence_Norm method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_Norm", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action confidence_Norm -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action confidence_Norm -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_post_request_body.go deleted file mode 100644 index 9172cc8ca8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["size"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSize(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSize gets the size property value. The size property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetSize()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("size") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("size", m.GetSize()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSize sets the size property value. The size property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) SetSize(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("size", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSize()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSize(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_request_builder.go deleted file mode 100644 index 6285b5e757..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_confidence_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder provides operations to call the confidence_T method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/confidence_T", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action confidence_T -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action confidence_T -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_post_request_body.go deleted file mode 100644 index 079ed9883e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fromUnit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFromUnit(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["toUnit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetToUnit(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFromUnit gets the fromUnit property value. The fromUnit property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetFromUnit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fromUnit") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetToUnit gets the toUnit property value. The toUnit property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) GetToUnit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("toUnit") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fromUnit", m.GetFromUnit()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("toUnit", m.GetToUnit()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFromUnit sets the fromUnit property value. The fromUnit property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) SetFromUnit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fromUnit", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetToUnit sets the toUnit property value. The toUnit property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBody) SetToUnit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("toUnit", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFromUnit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetToUnit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFromUnit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetToUnit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_request_builder.go deleted file mode 100644 index e41c893f58..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_convert_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder provides operations to call the convert method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/convert", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action convert -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action convert -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_post_request_body.go deleted file mode 100644 index 137ffde7cd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_request_builder.go deleted file mode 100644 index 954d4118fb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cos_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder provides operations to call the cos method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cos", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action cos -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action cos -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_post_request_body.go deleted file mode 100644 index 9d84e57942..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_request_builder.go deleted file mode 100644 index c9fcaa34cb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cosh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder provides operations to call the cosh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cosh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action cosh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action cosh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_post_request_body.go deleted file mode 100644 index 2118efce67..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_request_builder.go deleted file mode 100644 index f5143aa916..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cot_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder provides operations to call the cot method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cot", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action cot -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action cot -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_post_request_body.go deleted file mode 100644 index 203d061d31..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_request_builder.go deleted file mode 100644 index b129ccdcfd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coth_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder provides operations to call the coth method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coth", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coth -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coth -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_post_request_body.go deleted file mode 100644 index 78c6382ade..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_request_builder.go deleted file mode 100644 index e3b96a7244..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder provides operations to call the countA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action countA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action countA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_post_request_body.go deleted file mode 100644 index f77e280de7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["range"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRangeEscaped gets the range property value. The range property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("range", m.GetRangeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetRangeEscaped sets the range property value. The range property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBody) SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_request_builder.go deleted file mode 100644 index 3f870cab20..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_blank_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder provides operations to call the countBlank method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countBlank", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action countBlank -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action countBlank -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_post_request_body.go deleted file mode 100644 index bcae53a713..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["range"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRangeEscaped gets the range property value. The range property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("range", m.GetRangeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetRangeEscaped sets the range property value. The range property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBody) SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_request_builder.go deleted file mode 100644 index 473449cd6b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_if_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder provides operations to call the countIf method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIf", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action countIf -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action countIf -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_post_request_body.go deleted file mode 100644 index f2f60710c2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_request_builder.go deleted file mode 100644 index 2456a64d08..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_ifs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder provides operations to call the countIfs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/countIfs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action countIfs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action countIfs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_post_request_body.go deleted file mode 100644 index 5e7fb01c4b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_request_builder.go deleted file mode 100644 index 76f43126fc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_count_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/count", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action count -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_post_request_body.go deleted file mode 100644 index 37c6040f69..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_request_builder.go deleted file mode 100644 index bdd2a999b8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_day_bs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder provides operations to call the coupDayBs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDayBs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupDayBs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupDayBs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_post_request_body.go deleted file mode 100644 index fd3a48ce10..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_request_builder.go deleted file mode 100644 index c9f739d2a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_nc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder provides operations to call the coupDaysNc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDaysNc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupDaysNc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupDaysNc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_post_request_body.go deleted file mode 100644 index be298f9823..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_request_builder.go deleted file mode 100644 index 796853e32b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_days_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder provides operations to call the coupDays method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupDays", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupDays -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupDays -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_post_request_body.go deleted file mode 100644 index 18bbdfefb0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_request_builder.go deleted file mode 100644 index ccb07f8ea7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_ncd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder provides operations to call the coupNcd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNcd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupNcd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupNcd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_post_request_body.go deleted file mode 100644 index 33fccd0d18..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_request_builder.go deleted file mode 100644 index 5629e1f20a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_num_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder provides operations to call the coupNum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupNum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupNum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupNum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_post_request_body.go deleted file mode 100644 index f9b125c27a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_request_builder.go deleted file mode 100644 index d382385679..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_coup_pcd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder provides operations to call the coupPcd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/coupPcd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action coupPcd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action coupPcd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_post_request_body.go deleted file mode 100644 index 997075dc15..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_request_builder.go deleted file mode 100644 index 48bdea992c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder provides operations to call the csc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action csc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action csc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_post_request_body.go deleted file mode 100644 index 5232bccb10..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_request_builder.go deleted file mode 100644 index 50e6a56f48..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_csch_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder provides operations to call the csch method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/csch", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action csch -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action csch -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_post_request_body.go deleted file mode 100644 index e4353b92d6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndPeriod gets the endPeriod property value. The endPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartPeriod gets the startPeriod property value. The startPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endPeriod", m.GetEndPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startPeriod", m.GetStartPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndPeriod sets the endPeriod property value. The endPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endPeriod", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetStartPeriod sets the startPeriod property value. The startPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startPeriod", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_request_builder.go deleted file mode 100644 index ae01283f80..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_i_pmt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder provides operations to call the cumIPmt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumIPmt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action cumIPmt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action cumIPmt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_post_request_body.go deleted file mode 100644 index f2aec6c107..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndPeriod gets the endPeriod property value. The endPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartPeriod gets the startPeriod property value. The startPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endPeriod", m.GetEndPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startPeriod", m.GetStartPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndPeriod sets the endPeriod property value. The endPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endPeriod", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetStartPeriod sets the startPeriod property value. The startPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startPeriod", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_request_builder.go deleted file mode 100644 index b8d5c9dd9c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_cum_princ_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder provides operations to call the cumPrinc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/cumPrinc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action cumPrinc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action cumPrinc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_post_request_body.go deleted file mode 100644 index 397fdf5394..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDay gets the day property value. The day property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetDay()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("day") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["day"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDay(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["month"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMonth(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["year"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYear(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMonth gets the month property value. The month property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetMonth()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("month") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYear gets the year property value. The year property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) GetYear()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("year") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("day", m.GetDay()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("month", m.GetMonth()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("year", m.GetYear()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDay sets the day property value. The day property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) SetDay(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("day", value) - if err != nil { - panic(err) - } -} -// SetMonth sets the month property value. The month property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) SetMonth(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("month", value) - if err != nil { - panic(err) - } -} -// SetYear sets the year property value. The year property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBody) SetYear(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("year", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDay()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMonth()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYear()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDay(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMonth(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYear(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_request_builder.go deleted file mode 100644 index ffa429d849..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_date_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder provides operations to call the date method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/date", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action date -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action date -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_post_request_body.go deleted file mode 100644 index 9079843ad5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDateText gets the dateText property value. The dateText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) GetDateText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("dateText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["dateText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDateText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("dateText", m.GetDateText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDateText sets the dateText property value. The dateText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBody) SetDateText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("dateText", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDateText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDateText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_request_builder.go deleted file mode 100644 index 2dd309b7a9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_datevalue_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder provides operations to call the datevalue method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/datevalue", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action datevalue -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action datevalue -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevaluePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_post_request_body.go deleted file mode 100644 index fcad1e8352..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_request_builder.go deleted file mode 100644 index cf83fb7a03..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_daverage_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder provides operations to call the daverage method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/daverage", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action daverage -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action daverage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaveragePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_post_request_body.go deleted file mode 100644 index 5f96b327f4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_request_builder.go deleted file mode 100644 index 103ef99b68..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_day_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder provides operations to call the day method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/day", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action day -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action day -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_post_request_body.go deleted file mode 100644 index c93ea16142..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndDate gets the endDate property value. The endDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["method"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMethod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMethod gets the method property value. The method property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetMethod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("method") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endDate", m.GetEndDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("method", m.GetMethod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndDate sets the endDate property value. The endDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endDate", value) - if err != nil { - panic(err) - } -} -// SetMethod sets the method property value. The method property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) SetMethod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("method", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMethod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMethod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_request_builder.go deleted file mode 100644 index b6e36479b9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days360_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder provides operations to call the days360 method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days360", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action days360 -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action days360 -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_post_request_body.go deleted file mode 100644 index 4737daf741..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndDate gets the endDate property value. The endDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endDate", m.GetEndDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndDate sets the endDate property value. The endDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endDate", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_request_builder.go deleted file mode 100644 index 9a0c0320e3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_days_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder provides operations to call the days method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/days", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action days -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action days -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_post_request_body.go deleted file mode 100644 index 7f1c007d94..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["life"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLife(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["month"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMonth(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["period"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLife gets the life property value. The life property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("life") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMonth gets the month property value. The month property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetMonth()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("month") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPeriod gets the period property value. The period property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("period") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("life", m.GetLife()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("month", m.GetMonth()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("period", m.GetPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetLife sets the life property value. The life property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("life", value) - if err != nil { - panic(err) - } -} -// SetMonth sets the month property value. The month property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetMonth(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("month", value) - if err != nil { - panic(err) - } -} -// SetPeriod sets the period property value. The period property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("period", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMonth()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMonth(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_request_builder.go deleted file mode 100644 index 8041c3441f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_db_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder provides operations to call the db method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/db", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action db -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action db -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_post_request_body.go deleted file mode 100644 index 1508b62114..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_request_builder.go deleted file mode 100644 index b5f6c5353e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dbcs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder provides operations to call the dbcs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dbcs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dbcs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dbcs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_post_request_body.go deleted file mode 100644 index 6c43aed923..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_request_builder.go deleted file mode 100644 index 51fe126bc6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder provides operations to call the dcountA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcountA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dcountA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dcountA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_post_request_body.go deleted file mode 100644 index 7c890b1bb8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_request_builder.go deleted file mode 100644 index 2ce4608a43..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dcount_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder provides operations to call the dcount method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dcount", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dcount -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dcount -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_post_request_body.go deleted file mode 100644 index a52a1754c0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFactor gets the factor property value. The factor property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetFactor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("factor") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["factor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFactor(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["life"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLife(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["period"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLife gets the life property value. The life property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("life") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPeriod gets the period property value. The period property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("period") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("factor", m.GetFactor()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("life", m.GetLife()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("period", m.GetPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetFactor sets the factor property value. The factor property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetFactor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("factor", value) - if err != nil { - panic(err) - } -} -// SetLife sets the life property value. The life property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("life", value) - if err != nil { - panic(err) - } -} -// SetPeriod sets the period property value. The period property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("period", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFactor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFactor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_request_builder.go deleted file mode 100644 index f0d4c0e4f0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ddb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder provides operations to call the ddb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ddb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ddb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ddb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_post_request_body.go deleted file mode 100644 index 25cc893757..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_request_builder.go deleted file mode 100644 index 2e6e828b26..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_bin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder provides operations to call the dec2Bin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Bin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dec2Bin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dec2Bin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_post_request_body.go deleted file mode 100644 index d993f96cf5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_request_builder.go deleted file mode 100644 index 994aa25e31..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_hex_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder provides operations to call the dec2Hex method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Hex", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dec2Hex -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dec2Hex -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_post_request_body.go deleted file mode 100644 index dd72eaff82..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_request_builder.go deleted file mode 100644 index f1de3c5786..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dec2_oct_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder provides operations to call the dec2Oct method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dec2Oct", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dec2Oct -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dec2Oct -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_post_request_body.go deleted file mode 100644 index 3f01d6b671..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["radix"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRadix(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRadix gets the radix property value. The radix property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) GetRadix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("radix") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("radix", m.GetRadix()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetRadix sets the radix property value. The radix property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBody) SetRadix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("radix", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRadix()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRadix(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_request_builder.go deleted file mode 100644 index 6ad011d4aa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_decimal_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder provides operations to call the decimal method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/decimal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action decimal -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action decimal -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_post_request_body.go deleted file mode 100644 index fb5c6f9536..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAngle gets the angle property value. The angle property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) GetAngle()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("angle") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["angle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAngle(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("angle", m.GetAngle()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAngle sets the angle property value. The angle property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) SetAngle(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("angle", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAngle()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAngle(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_request_builder.go deleted file mode 100644 index 3e6fca46c7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_degrees_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder provides operations to call the degrees method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/degrees", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action degrees -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action degrees -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_post_request_body.go deleted file mode 100644 index 8e5b750886..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber1 gets the number1 property value. The number1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber2 gets the number2 property value. The number2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number1", m.GetNumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number2", m.GetNumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber1 sets the number1 property value. The number1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number1", value) - if err != nil { - panic(err) - } -} -// SetNumber2 sets the number2 property value. The number2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBody) SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_request_builder.go deleted file mode 100644 index cfb4ae5639..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_delta_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder provides operations to call the delta method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/delta", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action delta -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action delta -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_post_request_body.go deleted file mode 100644 index c9178e0651..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_request_builder.go deleted file mode 100644 index d9fdaeeb04..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dev_sq_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder provides operations to call the devSq method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/devSq", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action devSq -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action devSq -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_post_request_body.go deleted file mode 100644 index c09d61f67d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_request_builder.go deleted file mode 100644 index c922e8ad11..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dget_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder provides operations to call the dget method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dget", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dget -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dget -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_post_request_body.go deleted file mode 100644 index 1975bf097c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_request_builder.go deleted file mode 100644 index a01b39df9f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_disc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder provides operations to call the disc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/disc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action disc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action disc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_post_request_body.go deleted file mode 100644 index ca4b36d480..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_request_builder.go deleted file mode 100644 index 0c57e87c59..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmax_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder provides operations to call the dmax method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmax", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dmax -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dmax -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_post_request_body.go deleted file mode 100644 index 6f6ecc1a5a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_request_builder.go deleted file mode 100644 index f46da877fe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dmin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder provides operations to call the dmin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dmin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dmin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dmin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_post_request_body.go deleted file mode 100644 index 59b911b86f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fraction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFraction(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["fractionalDollar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFractionalDollar(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFraction gets the fraction property value. The fraction property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) GetFraction()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fraction") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFractionalDollar gets the fractionalDollar property value. The fractionalDollar property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) GetFractionalDollar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fractionalDollar") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fraction", m.GetFraction()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("fractionalDollar", m.GetFractionalDollar()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFraction sets the fraction property value. The fraction property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) SetFraction(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fraction", value) - if err != nil { - panic(err) - } -} -// SetFractionalDollar sets the fractionalDollar property value. The fractionalDollar property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBody) SetFractionalDollar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fractionalDollar", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFraction()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFractionalDollar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFraction(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFractionalDollar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_request_builder.go deleted file mode 100644 index bfe64e8134..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_de_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder provides operations to call the dollarDe method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarDe", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dollarDe -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dollarDe -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_post_request_body.go deleted file mode 100644 index 1469a12561..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDecimalDollar gets the decimalDollar property value. The decimalDollar property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) GetDecimalDollar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("decimalDollar") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["decimalDollar"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDecimalDollar(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["fraction"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFraction(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFraction gets the fraction property value. The fraction property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) GetFraction()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fraction") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("decimalDollar", m.GetDecimalDollar()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("fraction", m.GetFraction()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDecimalDollar sets the decimalDollar property value. The decimalDollar property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) SetDecimalDollar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("decimalDollar", value) - if err != nil { - panic(err) - } -} -// SetFraction sets the fraction property value. The fraction property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBody) SetFraction(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fraction", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDecimalDollar()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFraction()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDecimalDollar(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFraction(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_request_builder.go deleted file mode 100644 index b4ca2c5e44..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_fr_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder provides operations to call the dollarFr method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollarFr", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dollarFr -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dollarFr -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_post_request_body.go deleted file mode 100644 index 95a894c9cc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDecimals gets the decimals property value. The decimals property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("decimals") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["decimals"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDecimals(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("decimals", m.GetDecimals()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDecimals sets the decimals property value. The decimals property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("decimals", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_request_builder.go deleted file mode 100644 index fa037dbccf..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dollar_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder provides operations to call the dollar method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dollar", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dollar -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dollar -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_post_request_body.go deleted file mode 100644 index 3d5aa98bad..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_request_builder.go deleted file mode 100644 index b51906c99f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dproduct_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder provides operations to call the dproduct method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dproduct", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dproduct -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dproduct -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_post_request_body.go deleted file mode 100644 index ed67b39037..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_request_builder.go deleted file mode 100644 index dbe489a674..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_p_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder provides operations to call the dstDevP method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDevP", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dstDevP -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dstDevP -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_post_request_body.go deleted file mode 100644 index ec894298ad..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_request_builder.go deleted file mode 100644 index d364fb98d1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dst_dev_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder provides operations to call the dstDev method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dstDev", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dstDev -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dstDev -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_post_request_body.go deleted file mode 100644 index d53db14e7b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_request_builder.go deleted file mode 100644 index da93486865..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dsum_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder provides operations to call the dsum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dsum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dsum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dsum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_post_request_body.go deleted file mode 100644 index 416e453657..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCoupon gets the coupon property value. The coupon property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("coupon") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["coupon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCoupon(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("coupon", m.GetCoupon()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetCoupon sets the coupon property value. The coupon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("coupon", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_request_builder.go deleted file mode 100644 index 31f671ba6b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_duration_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder provides operations to call the duration method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/duration", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action duration -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action duration -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_post_request_body.go deleted file mode 100644 index 5bb9a03353..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_request_builder.go deleted file mode 100644 index 1af45067d0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_p_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder provides operations to call the dvarP method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvarP", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dvarP -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dvarP -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_post_request_body.go deleted file mode 100644 index 0e33803dfb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDatabase gets the database property value. The database property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("database") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetField gets the field property value. The field property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("field") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["database"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDatabase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["field"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetField(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("database", m.GetDatabase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("field", m.GetField()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetDatabase sets the database property value. The database property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("database", value) - if err != nil { - panic(err) - } -} -// SetField sets the field property value. The field property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBody) SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("field", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDatabase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetField()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDatabase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetField(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_request_builder.go deleted file mode 100644 index 8ea0f413c8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_dvar_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder provides operations to call the dvar method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/dvar", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action dvar -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action dvar -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_post_request_body.go deleted file mode 100644 index ed1aeeaa0b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_request_builder.go deleted file mode 100644 index 4b50447eea..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ecma_ceiling_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder provides operations to call the ecma_Ceiling method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ecma_Ceiling", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ecma_Ceiling -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ecma_Ceiling -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_post_request_body.go deleted file mode 100644 index 1a102806ad..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["months"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMonths(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMonths gets the months property value. The months property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) GetMonths()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("months") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("months", m.GetMonths()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMonths sets the months property value. The months property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) SetMonths(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("months", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMonths()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMonths(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_request_builder.go deleted file mode 100644 index c53b73bd33..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_edate_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder provides operations to call the edate method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/edate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action edate -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action edate -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_post_request_body.go deleted file mode 100644 index 6a9e305168..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["nominalRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNominalRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["npery"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNpery(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNominalRate gets the nominalRate property value. The nominalRate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) GetNominalRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nominalRate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNpery gets the npery property value. The npery property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) GetNpery()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("npery") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("nominalRate", m.GetNominalRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("npery", m.GetNpery()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNominalRate sets the nominalRate property value. The nominalRate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) SetNominalRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nominalRate", value) - if err != nil { - panic(err) - } -} -// SetNpery sets the npery property value. The npery property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBody) SetNpery(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("npery", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNominalRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNpery()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNominalRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNpery(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_request_builder.go deleted file mode 100644 index 6589298635..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_effect_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder provides operations to call the effect method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/effect", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action effect -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action effect -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_post_request_body.go deleted file mode 100644 index d7086a9b8f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["months"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMonths(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMonths gets the months property value. The months property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) GetMonths()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("months") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("months", m.GetMonths()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMonths sets the months property value. The months property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) SetMonths(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("months", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMonths()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMonths(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_request_builder.go deleted file mode 100644 index 7cab2e6b8f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_eo_month_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder provides operations to call the eoMonth method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/eoMonth", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action eoMonth -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action eoMonth -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_post_request_body.go deleted file mode 100644 index c1593db015..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_post_request_body.go deleted file mode 100644 index 7dc1ae02bc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["X"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the X property value. The X property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("X", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the X property value. The X property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_request_builder.go deleted file mode 100644 index ad782433ac..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_precise_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder provides operations to call the erfC_Precise method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC_Precise", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action erfC_Precise -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action erfC_Precise -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_request_builder.go deleted file mode 100644 index 76082b652b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_c_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder provides operations to call the erfC method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erfC", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action erfC -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action erfC -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_post_request_body.go deleted file mode 100644 index 5bee164b3d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["lowerLimit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLowerLimit(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["upperLimit"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetUpperLimit(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLowerLimit gets the lowerLimit property value. The lowerLimit property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) GetLowerLimit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lowerLimit") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetUpperLimit gets the upperLimit property value. The upperLimit property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) GetUpperLimit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("upperLimit") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("lowerLimit", m.GetLowerLimit()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("upperLimit", m.GetUpperLimit()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLowerLimit sets the lowerLimit property value. The lowerLimit property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) SetLowerLimit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lowerLimit", value) - if err != nil { - panic(err) - } -} -// SetUpperLimit sets the upperLimit property value. The upperLimit property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBody) SetUpperLimit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("upperLimit", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLowerLimit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetUpperLimit()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLowerLimit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetUpperLimit(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_post_request_body.go deleted file mode 100644 index 09d0e2fd3e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["X"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the X property value. The X property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("X", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the X property value. The X property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_request_builder.go deleted file mode 100644 index 57a2cbe4f4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_precise_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder provides operations to call the erf_Precise method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf_Precise", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action erf_Precise -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action erf_Precise -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_request_builder.go deleted file mode 100644 index d8cd725d18..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_erf_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder provides operations to call the erf method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/erf", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action erf -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action erf -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_post_request_body.go deleted file mode 100644 index aefdefbf04..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetErrorVal gets the errorVal property value. The errorVal property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) GetErrorVal()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("errorVal") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["errorVal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetErrorVal(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("errorVal", m.GetErrorVal()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetErrorVal sets the errorVal property value. The errorVal property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBody) SetErrorVal(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("errorVal", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetErrorVal()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetErrorVal(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_request_builder.go deleted file mode 100644 index b65340be80..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_error_type_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder provides operations to call the error_Type method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/error_Type", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action error_Type -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action error_Type -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_post_request_body.go deleted file mode 100644 index 4587fe6296..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_request_builder.go deleted file mode 100644 index 4acd4dc0b8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_even_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder provides operations to call the even method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/even", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action even -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action even -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_post_request_body.go deleted file mode 100644 index d42b9504d2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText1 gets the text1 property value. The text1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) GetText1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText2 gets the text2 property value. The text2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) GetText2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text1", m.GetText1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text2", m.GetText2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText1 sets the text1 property value. The text1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) SetText1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text1", value) - if err != nil { - panic(err) - } -} -// SetText2 sets the text2 property value. The text2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBody) SetText2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_request_builder.go deleted file mode 100644 index 62b575cb7a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exact_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder provides operations to call the exact method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exact", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action exact -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action exact -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_post_request_body.go deleted file mode 100644 index ee0058e7a5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_request_builder.go deleted file mode 100644 index 00c41bb44b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_exp_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder provides operations to call the exp method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/exp", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action exp -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action exp -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_post_request_body.go deleted file mode 100644 index 0c2b4c0e8b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lambda"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLambda(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLambda gets the lambda property value. The lambda property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetLambda()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lambda") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lambda", m.GetLambda()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetLambda sets the lambda property value. The lambda property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) SetLambda(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lambda", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLambda()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLambda(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_request_builder.go deleted file mode 100644 index aeb8385a5e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_expon_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder provides operations to call the expon_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/expon_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action expon_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action expon_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_post_request_body.go deleted file mode 100644 index b45ffb417b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom1 gets the degFreedom1 property value. The degFreedom1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom2 gets the degFreedom2 property value. The degFreedom2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom1", m.GetDegFreedom1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom2", m.GetDegFreedom2()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom1 sets the degFreedom1 property value. The degFreedom1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom1", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom2 sets the degFreedom2 property value. The degFreedom2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom2", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_post_request_body.go deleted file mode 100644 index e4da524a1c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom1 gets the degFreedom1 property value. The degFreedom1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom2 gets the degFreedom2 property value. The degFreedom2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom1", m.GetDegFreedom1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom2", m.GetDegFreedom2()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom1 sets the degFreedom1 property value. The degFreedom1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom1", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom2 sets the degFreedom2 property value. The degFreedom2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom2", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_request_builder.go deleted file mode 100644 index ee7e4e7651..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_r_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder provides operations to call the f_Dist_RT method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist_RT", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action f_Dist_RT -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action f_Dist_RT -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_request_builder.go deleted file mode 100644 index 3d46a826e3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder provides operations to call the f_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action f_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action f_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_post_request_body.go deleted file mode 100644 index 242bbdeb95..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom1 gets the degFreedom1 property value. The degFreedom1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom2 gets the degFreedom2 property value. The degFreedom2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom1", m.GetDegFreedom1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom2", m.GetDegFreedom2()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom1 sets the degFreedom1 property value. The degFreedom1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom1", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom2 sets the degFreedom2 property value. The degFreedom2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom2", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_post_request_body.go deleted file mode 100644 index 3d50c307b6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom1 gets the degFreedom1 property value. The degFreedom1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom2 gets the degFreedom2 property value. The degFreedom2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom1", m.GetDegFreedom1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom2", m.GetDegFreedom2()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom1 sets the degFreedom1 property value. The degFreedom1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom1", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom2 sets the degFreedom2 property value. The degFreedom2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom2", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_request_builder.go deleted file mode 100644 index 1256f28b51..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_r_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder provides operations to call the f_Inv_RT method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv_RT", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action f_Inv_RT -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action f_Inv_RT -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_request_builder.go deleted file mode 100644 index 9237b2efc3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_f_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder provides operations to call the f_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/f_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action f_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action f_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_post_request_body.go deleted file mode 100644 index f28f6a3e1e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_request_builder.go deleted file mode 100644 index 9efac239e4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_double_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder provides operations to call the factDouble method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/factDouble", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action factDouble -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action factDouble -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoublePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_post_request_body.go deleted file mode 100644 index 759e512b5f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_request_builder.go deleted file mode 100644 index 06c105749d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fact_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder provides operations to call the fact method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fact", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fact -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fact -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_false_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_false_request_builder.go deleted file mode 100644 index 3f6add42a7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_false_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder provides operations to call the false method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/false", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action false -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action false -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_post_request_body.go deleted file mode 100644 index d639d8af03..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["findText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFindText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["withinText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetWithinText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFindText gets the findText property value. The findText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetFindText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("findText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetWithinText gets the withinText property value. The withinText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) GetWithinText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("withinText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("findText", m.GetFindText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("withinText", m.GetWithinText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFindText sets the findText property value. The findText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) SetFindText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("findText", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -// SetWithinText sets the withinText property value. The withinText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBody) SetWithinText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("withinText", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFindText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetWithinText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFindText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetWithinText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_request_builder.go deleted file mode 100644 index c57d042b99..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_b_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder provides operations to call the findB method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/findB", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action findB -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action findB -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_post_request_body.go deleted file mode 100644 index 35d1bc67b8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["findText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFindText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["withinText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetWithinText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFindText gets the findText property value. The findText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetFindText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("findText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetWithinText gets the withinText property value. The withinText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) GetWithinText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("withinText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("findText", m.GetFindText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("withinText", m.GetWithinText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFindText sets the findText property value. The findText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) SetFindText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("findText", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -// SetWithinText sets the withinText property value. The withinText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBody) SetWithinText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("withinText", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFindText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetWithinText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFindText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetWithinText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_request_builder.go deleted file mode 100644 index 9f6dce3afc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_find_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder provides operations to call the find method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/find", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action find -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action find -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_post_request_body.go deleted file mode 100644 index 2880688f40..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["y"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetY(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetY gets the y property value. The y property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) GetY()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("y") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("y", m.GetY()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetY sets the y property value. The y property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBody) SetY(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("y", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetY()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetY(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_request_builder.go deleted file mode 100644 index 847e88a73e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder provides operations to call the fisherInv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisherInv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fisherInv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fisherInv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_post_request_body.go deleted file mode 100644 index 2f0175a989..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_request_builder.go deleted file mode 100644 index 1e8e2f4d7c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fisher_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder provides operations to call the fisher method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fisher", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fisher -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fisher -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_post_request_body.go deleted file mode 100644 index 9f6cdc8aeb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDecimals gets the decimals property value. The decimals property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("decimals") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["decimals"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDecimals(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["noCommas"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNoCommas(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNoCommas gets the noCommas property value. The noCommas property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetNoCommas()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("noCommas") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("decimals", m.GetDecimals()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("noCommas", m.GetNoCommas()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDecimals sets the decimals property value. The decimals property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("decimals", value) - if err != nil { - panic(err) - } -} -// SetNoCommas sets the noCommas property value. The noCommas property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) SetNoCommas(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("noCommas", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNoCommas()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNoCommas(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_request_builder.go deleted file mode 100644 index 774545488c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fixed_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder provides operations to call the fixed method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fixed", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fixed -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fixed -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_post_request_body.go deleted file mode 100644 index 8e91c9e04e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["mode"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMode(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMode gets the mode property value. The mode property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetMode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mode") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("mode", m.GetMode()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMode sets the mode property value. The mode property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) SetMode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mode", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMode()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMode(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_request_builder.go deleted file mode 100644 index 4e1e92bffa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_math_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder provides operations to call the floor_Math method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Math", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action floor_Math -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action floor_Math -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_post_request_body.go deleted file mode 100644 index ad863cae6b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_request_builder.go deleted file mode 100644 index 9308fe920e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_floor_precise_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder provides operations to call the floor_Precise method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/floor_Precise", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action floor_Precise -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action floor_Precise -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_post_request_body.go deleted file mode 100644 index f849b9ac92..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pmt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPmt(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPmt gets the pmt property value. The pmt property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pmt") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pmt", m.GetPmt()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPmt sets the pmt property value. The pmt property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pmt", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_request_builder.go deleted file mode 100644 index 654373a1bd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder provides operations to call the fv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_post_request_body.go deleted file mode 100644 index 25da87d212..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["principal"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPrincipal(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["schedule"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSchedule(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetPrincipal gets the principal property value. The principal property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) GetPrincipal()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("principal") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSchedule gets the schedule property value. The schedule property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) GetSchedule()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("schedule") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("principal", m.GetPrincipal()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("schedule", m.GetSchedule()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPrincipal sets the principal property value. The principal property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) SetPrincipal(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("principal", value) - if err != nil { - panic(err) - } -} -// SetSchedule sets the schedule property value. The schedule property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBody) SetSchedule(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("schedule", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPrincipal()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSchedule()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPrincipal(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSchedule(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_request_builder.go deleted file mode 100644 index d7239a7866..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_fvschedule_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder provides operations to call the fvschedule method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/fvschedule", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action fvschedule -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action fvschedule -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvschedulePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_post_request_body.go deleted file mode 100644 index 99b108698e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBeta gets the beta property value. The beta property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("beta") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["beta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBeta(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("beta", m.GetBeta()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBeta sets the beta property value. The beta property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("beta", value) - if err != nil { - panic(err) - } -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_request_builder.go deleted file mode 100644 index 12de6c556b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder provides operations to call the gamma_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gamma_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gamma_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_post_request_body.go deleted file mode 100644 index e5c95cd9bb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBeta gets the beta property value. The beta property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("beta") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["beta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBeta(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("beta", m.GetBeta()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBeta sets the beta property value. The beta property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("beta", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_request_builder.go deleted file mode 100644 index 7828d151e5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder provides operations to call the gamma_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gamma_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gamma_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_post_request_body.go deleted file mode 100644 index 6d53b05b1f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_post_request_body.go deleted file mode 100644 index 7133e3158d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_request_builder.go deleted file mode 100644 index c37f93195b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_precise_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder provides operations to call the gammaLn_Precise method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn_Precise", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gammaLn_Precise -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gammaLn_Precise -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PrecisePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_request_builder.go deleted file mode 100644 index 84b378c952..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_ln_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder provides operations to call the gammaLn method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gammaLn", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gammaLn -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gammaLn -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_post_request_body.go deleted file mode 100644 index 5abaf0689e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_request_builder.go deleted file mode 100644 index 63f371bf4c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gamma_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder provides operations to call the gamma method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gamma", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gamma -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gamma -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_post_request_body.go deleted file mode 100644 index 9bd7f87d6e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_request_builder.go deleted file mode 100644 index 097c2b693d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gauss_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder provides operations to call the gauss method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gauss", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gauss -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gauss -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_post_request_body.go deleted file mode 100644 index 9f8e089983..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_request_builder.go deleted file mode 100644 index 030994a1b1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_gcd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder provides operations to call the gcd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/gcd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action gcd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action gcd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_post_request_body.go deleted file mode 100644 index 0a9a560b13..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["step"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStep(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStep gets the step property value. The step property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) GetStep()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("step") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("step", m.GetStep()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetStep sets the step property value. The step property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBody) SetStep(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("step", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStep()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStep(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_request_builder.go deleted file mode 100644 index 33a74e64fd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ge_step_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder provides operations to call the geStep method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geStep", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action geStep -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action geStep -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_post_request_body.go deleted file mode 100644 index c907631fc9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_request_builder.go deleted file mode 100644 index 1523cf889b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_geo_mean_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder provides operations to call the geoMean method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/geoMean", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action geoMean -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action geoMean -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_post_request_body.go deleted file mode 100644 index ec38f3d7e8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_request_builder.go deleted file mode 100644 index 650a477bd9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_har_mean_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder provides operations to call the harMean method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/harMean", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action harMean -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action harMean -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_post_request_body.go deleted file mode 100644 index c9ca6d85cc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_request_builder.go deleted file mode 100644 index 5176574b7a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_bin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder provides operations to call the hex2Bin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Bin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hex2Bin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hex2Bin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_post_request_body.go deleted file mode 100644 index 7c9e2af620..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_request_builder.go deleted file mode 100644 index 773d6f1f9e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_dec_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder provides operations to call the hex2Dec method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Dec", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hex2Dec -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hex2Dec -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_post_request_body.go deleted file mode 100644 index 8799c1c51e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_request_builder.go deleted file mode 100644 index 7ce9f58bb2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hex2_oct_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder provides operations to call the hex2Oct method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hex2Oct", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hex2Oct -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hex2Oct -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_post_request_body.go deleted file mode 100644 index 5e9ff6cb6a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["lookupValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rangeLookup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeLookup(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rowIndexNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRowIndexNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["tableArray"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTableArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLookupValue gets the lookupValue property value. The lookupValue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupValue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRangeLookup gets the rangeLookup property value. The rangeLookup property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetRangeLookup()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeLookup") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRowIndexNum gets the rowIndexNum property value. The rowIndexNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetRowIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rowIndexNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTableArray gets the tableArray property value. The tableArray property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) GetTableArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("tableArray") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("lookupValue", m.GetLookupValue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rangeLookup", m.GetRangeLookup()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rowIndexNum", m.GetRowIndexNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("tableArray", m.GetTableArray()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLookupValue sets the lookupValue property value. The lookupValue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupValue", value) - if err != nil { - panic(err) - } -} -// SetRangeLookup sets the rangeLookup property value. The rangeLookup property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetRangeLookup(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeLookup", value) - if err != nil { - panic(err) - } -} -// SetRowIndexNum sets the rowIndexNum property value. The rowIndexNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetRowIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rowIndexNum", value) - if err != nil { - panic(err) - } -} -// SetTableArray sets the tableArray property value. The tableArray property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBody) SetTableArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("tableArray", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRangeLookup()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRowIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTableArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRangeLookup(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRowIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTableArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_request_builder.go deleted file mode 100644 index 3dbce3e63c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hlookup_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder provides operations to call the hlookup method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hlookup", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hlookup -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hlookup -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_post_request_body.go deleted file mode 100644 index 4f79be707d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_request_builder.go deleted file mode 100644 index 195245a747..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hour_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder provides operations to call the hour method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hour", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hour -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hour -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_post_request_body.go deleted file mode 100644 index 46dc567af3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberPop"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberPop(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberSample"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberSample(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["populationS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPopulationS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["sampleS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSampleS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumberPop gets the numberPop property value. The numberPop property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetNumberPop()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberPop") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberSample gets the numberSample property value. The numberSample property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetNumberSample()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberSample") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPopulationS gets the populationS property value. The populationS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetPopulationS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("populationS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSampleS gets the sampleS property value. The sampleS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) GetSampleS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sampleS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberPop", m.GetNumberPop()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberSample", m.GetNumberSample()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("populationS", m.GetPopulationS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sampleS", m.GetSampleS()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetNumberPop sets the numberPop property value. The numberPop property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetNumberPop(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberPop", value) - if err != nil { - panic(err) - } -} -// SetNumberSample sets the numberSample property value. The numberSample property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetNumberSample(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberSample", value) - if err != nil { - panic(err) - } -} -// SetPopulationS sets the populationS property value. The populationS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetPopulationS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("populationS", value) - if err != nil { - panic(err) - } -} -// SetSampleS sets the sampleS property value. The sampleS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBody) SetSampleS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sampleS", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberPop()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberSample()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPopulationS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSampleS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberPop(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberSample(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPopulationS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSampleS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_request_builder.go deleted file mode 100644 index 492f9f4b6c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyp_geom_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder provides operations to call the hypGeom_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hypGeom_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hypGeom_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hypGeom_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_post_request_body.go deleted file mode 100644 index 46ed14784d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["friendlyName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFriendlyName(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["linkLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLinkLocation(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFriendlyName gets the friendlyName property value. The friendlyName property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) GetFriendlyName()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("friendlyName") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetLinkLocation gets the linkLocation property value. The linkLocation property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) GetLinkLocation()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("linkLocation") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("friendlyName", m.GetFriendlyName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("linkLocation", m.GetLinkLocation()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFriendlyName sets the friendlyName property value. The friendlyName property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) SetFriendlyName(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("friendlyName", value) - if err != nil { - panic(err) - } -} -// SetLinkLocation sets the linkLocation property value. The linkLocation property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBody) SetLinkLocation(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("linkLocation", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFriendlyName()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLinkLocation()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFriendlyName(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLinkLocation(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_request_builder.go deleted file mode 100644 index ab057fcb53..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_hyperlink_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder provides operations to call the hyperlink method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/hyperlink", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action hyperlink -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action hyperlink -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_post_request_body.go deleted file mode 100644 index c70abafe68..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["logicalTest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLogicalTest(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["valueIfFalse"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValueIfFalse(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["valueIfTrue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValueIfTrue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLogicalTest gets the logicalTest property value. The logicalTest property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetLogicalTest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("logicalTest") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValueIfFalse gets the valueIfFalse property value. The valueIfFalse property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetValueIfFalse()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("valueIfFalse") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValueIfTrue gets the valueIfTrue property value. The valueIfTrue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) GetValueIfTrue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("valueIfTrue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("logicalTest", m.GetLogicalTest()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("valueIfFalse", m.GetValueIfFalse()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("valueIfTrue", m.GetValueIfTrue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLogicalTest sets the logicalTest property value. The logicalTest property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) SetLogicalTest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("logicalTest", value) - if err != nil { - panic(err) - } -} -// SetValueIfFalse sets the valueIfFalse property value. The valueIfFalse property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) SetValueIfFalse(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("valueIfFalse", value) - if err != nil { - panic(err) - } -} -// SetValueIfTrue sets the valueIfTrue property value. The valueIfTrue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBody) SetValueIfTrue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("valueIfTrue", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLogicalTest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValueIfFalse()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValueIfTrue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLogicalTest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValueIfFalse(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValueIfTrue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_request_builder.go deleted file mode 100644 index 5ffd7ed49b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_if_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder provides operations to call the if method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/if", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action if -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action if -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_post_request_body.go deleted file mode 100644 index 070bda382d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_request_builder.go deleted file mode 100644 index 7085161973..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_abs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder provides operations to call the imAbs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imAbs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imAbs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imAbs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_post_request_body.go deleted file mode 100644 index d9350fde06..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_request_builder.go deleted file mode 100644 index bccf187c1a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_argument_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder provides operations to call the imArgument method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imArgument", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imArgument -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imArgument -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_post_request_body.go deleted file mode 100644 index b013b7615c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_request_builder.go deleted file mode 100644 index dbfee2a157..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_conjugate_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder provides operations to call the imConjugate method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imConjugate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imConjugate -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imConjugate -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_post_request_body.go deleted file mode 100644 index 636173b288..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_request_builder.go deleted file mode 100644 index 862af61367..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cos_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder provides operations to call the imCos method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCos", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imCos -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imCos -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_post_request_body.go deleted file mode 100644 index f7bfb74c51..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_request_builder.go deleted file mode 100644 index ac43ccfc51..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cosh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder provides operations to call the imCosh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCosh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imCosh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imCosh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_post_request_body.go deleted file mode 100644 index a70291570a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_request_builder.go deleted file mode 100644 index abf5274362..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_cot_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder provides operations to call the imCot method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCot", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imCot -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imCot -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_post_request_body.go deleted file mode 100644 index 626a68386d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_request_builder.go deleted file mode 100644 index 7e2f2a7fa0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder provides operations to call the imCsc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imCsc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imCsc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_post_request_body.go deleted file mode 100644 index 462615c614..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_request_builder.go deleted file mode 100644 index 01ede5b504..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_csch_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder provides operations to call the imCsch method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imCsch", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imCsch -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imCsch -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_post_request_body.go deleted file mode 100644 index 8e9f750e8f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["inumber2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber1 gets the inumber1 property value. The inumber1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) GetInumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetInumber2 gets the inumber2 property value. The inumber2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) GetInumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber1", m.GetInumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("inumber2", m.GetInumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber1 sets the inumber1 property value. The inumber1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) SetInumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber1", value) - if err != nil { - panic(err) - } -} -// SetInumber2 sets the inumber2 property value. The inumber2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBody) SetInumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetInumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetInumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_request_builder.go deleted file mode 100644 index f78606a084..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_div_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder provides operations to call the imDiv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imDiv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imDiv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imDiv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_post_request_body.go deleted file mode 100644 index 57ed1b8438..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_request_builder.go deleted file mode 100644 index fe6c9f1ff3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_exp_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder provides operations to call the imExp method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imExp", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imExp -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imExp -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_post_request_body.go deleted file mode 100644 index b0a2341bc5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_request_builder.go deleted file mode 100644 index 204ce90020..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_ln_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder provides operations to call the imLn method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLn", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imLn -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imLn -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_post_request_body.go deleted file mode 100644 index f5c1656e8c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_request_builder.go deleted file mode 100644 index d98dd0efd7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log10_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder provides operations to call the imLog10 method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog10", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imLog10 -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imLog10 -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_post_request_body.go deleted file mode 100644 index f298e669a1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_request_builder.go deleted file mode 100644 index 39eec39af6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_log2_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder provides operations to call the imLog2 method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imLog2", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imLog2 -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imLog2 -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_post_request_body.go deleted file mode 100644 index d82593f560..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_request_builder.go deleted file mode 100644 index f497f2b070..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_power_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder provides operations to call the imPower method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imPower", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imPower -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imPower -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_post_request_body.go deleted file mode 100644 index 7b60fc1377..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_request_builder.go deleted file mode 100644 index 0d28e26801..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_product_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder provides operations to call the imProduct method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imProduct", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imProduct -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imProduct -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_post_request_body.go deleted file mode 100644 index 3ca70bf3c4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_request_builder.go deleted file mode 100644 index 9ee23295f1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_real_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder provides operations to call the imReal method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imReal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imReal -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imReal -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_post_request_body.go deleted file mode 100644 index 6d761b8ab8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_request_builder.go deleted file mode 100644 index cd316f96d7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sec_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder provides operations to call the imSec method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSec", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSec -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSec -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_post_request_body.go deleted file mode 100644 index eff2e68a92..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_request_builder.go deleted file mode 100644 index 0204f7162d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sech_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder provides operations to call the imSech method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSech", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSech -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSech -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_post_request_body.go deleted file mode 100644 index a2ed376ccb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_request_builder.go deleted file mode 100644 index 59662963e4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder provides operations to call the imSin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_post_request_body.go deleted file mode 100644 index 8d8d5c39cb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_request_builder.go deleted file mode 100644 index 702681c3b6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sinh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder provides operations to call the imSinh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSinh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSinh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSinh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_post_request_body.go deleted file mode 100644 index b5d34fc1c9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_request_builder.go deleted file mode 100644 index dc1110a27c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sqrt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder provides operations to call the imSqrt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSqrt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSqrt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSqrt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_post_request_body.go deleted file mode 100644 index 484574f424..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber1"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber1(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["inumber2"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber2(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber1 gets the inumber1 property value. The inumber1 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) GetInumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber1") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetInumber2 gets the inumber2 property value. The inumber2 property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) GetInumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber2") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber1", m.GetInumber1()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("inumber2", m.GetInumber2()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber1 sets the inumber1 property value. The inumber1 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) SetInumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber1", value) - if err != nil { - panic(err) - } -} -// SetInumber2 sets the inumber2 property value. The inumber2 property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBody) SetInumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber2", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber1()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetInumber2()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber1(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetInumber2(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_request_builder.go deleted file mode 100644 index 0061d6ed39..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sub_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder provides operations to call the imSub method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSub", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSub -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSub -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_post_request_body.go deleted file mode 100644 index 8a18b3e1fc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_request_builder.go deleted file mode 100644 index 9dc4301671..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_sum_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder provides operations to call the imSum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imSum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imSum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imSum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_post_request_body.go deleted file mode 100644 index 6168e0d86e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_request_builder.go deleted file mode 100644 index 437cbe6f23..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_im_tan_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder provides operations to call the imTan method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imTan", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imTan -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imTan -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_post_request_body.go deleted file mode 100644 index 24bb8936f2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["inumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInumber gets the inumber property value. The inumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("inumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("inumber", m.GetInumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInumber sets the inumber property value. The inumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBody) SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("inumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_request_builder.go deleted file mode 100644 index cc6d22aff3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_imaginary_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder provides operations to call the imaginary method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/imaginary", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action imaginary -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action imaginary -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_post_request_body.go deleted file mode 100644 index ed1718f1e1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_post_request_body.go deleted file mode 100644 index 205646da1e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["investment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInvestment(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInvestment gets the investment property value. The investment property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetInvestment()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("investment") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("investment", m.GetInvestment()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetInvestment sets the investment property value. The investment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetInvestment(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("investment", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetInvestment()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetInvestment(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_request_builder.go deleted file mode 100644 index fefaae804b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_rate_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder provides operations to call the intRate method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/intRate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action intRate -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action intRate -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_request_builder.go deleted file mode 100644 index 0ce64b7834..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_int_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder provides operations to call the int method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/int", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action int -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action int -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_post_request_body.go deleted file mode 100644 index d0c2ad0534..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["per"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPer(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPer gets the per property value. The per property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("per") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("per", m.GetPer()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPer sets the per property value. The per property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("per", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_request_builder.go deleted file mode 100644 index f738cb5f22..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ipmt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder provides operations to call the ipmt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ipmt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ipmt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ipmt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_post_request_body.go deleted file mode 100644 index 1b97f76487..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["guess"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetGuess(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetGuess gets the guess property value. The guess property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("guess") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("guess", m.GetGuess()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetGuess sets the guess property value. The guess property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("guess", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_request_builder.go deleted file mode 100644 index b09c773cfd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_irr_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder provides operations to call the irr method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/irr", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action irr -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action irr -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_post_request_body.go deleted file mode 100644 index a12c2d045d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_request_builder.go deleted file mode 100644 index d56b03e852..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_err_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder provides operations to call the isErr method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isErr", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isErr -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isErr -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_post_request_body.go deleted file mode 100644 index f8c8cc02e6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_request_builder.go deleted file mode 100644 index 0d27577649..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_error_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder provides operations to call the isError method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isError", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isError -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isError -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_post_request_body.go deleted file mode 100644 index 3b49ecaa15..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_request_builder.go deleted file mode 100644 index d997bdf51c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_even_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder provides operations to call the isEven method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isEven", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isEven -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isEven -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_post_request_body.go deleted file mode 100644 index 55ed085713..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["reference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReference(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetReference gets the reference property value. The reference property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reference") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("reference", m.GetReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetReference sets the reference property value. The reference property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBody) SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_request_builder.go deleted file mode 100644 index ee55b4de38..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_formula_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder provides operations to call the isFormula method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isFormula", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isFormula -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isFormula -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_post_request_body.go deleted file mode 100644 index 3bcf228ee6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_request_builder.go deleted file mode 100644 index e97c13d725..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_logical_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder provides operations to call the isLogical method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isLogical", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isLogical -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isLogical -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_post_request_body.go deleted file mode 100644 index 2c83e83b37..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_request_builder.go deleted file mode 100644 index 8faf8029d9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_n_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder provides operations to call the isNA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isNA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isNA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_post_request_body.go deleted file mode 100644 index 3334a75598..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_request_builder.go deleted file mode 100644 index 85c9d72aac..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_non_text_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder provides operations to call the isNonText method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNonText", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isNonText -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isNonText -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_post_request_body.go deleted file mode 100644 index 0cf65fa2f8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_request_builder.go deleted file mode 100644 index 3ae80063b1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_number_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder provides operations to call the isNumber method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isNumber", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isNumber -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isNumber -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_post_request_body.go deleted file mode 100644 index 62c54927af..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_request_builder.go deleted file mode 100644 index 64f4525152..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_odd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder provides operations to call the isOdd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isOdd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isOdd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isOdd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_post_request_body.go deleted file mode 100644 index bfbdfe09dc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_request_builder.go deleted file mode 100644 index d5322d992a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_is_text_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder provides operations to call the isText method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isText", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isText -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isText -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_post_request_body.go deleted file mode 100644 index 8b8f4b574f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_request_builder.go deleted file mode 100644 index 609ce34ce9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_ceiling_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder provides operations to call the iso_Ceiling method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/iso_Ceiling", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action iso_Ceiling -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action iso_Ceiling -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_post_request_body.go deleted file mode 100644 index 1837ba04b1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDate gets the date property value. The date property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) GetDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("date") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["date"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("date", m.GetDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDate sets the date property value. The date property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBody) SetDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("date", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_request_builder.go deleted file mode 100644 index 413cd4e6be..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_iso_week_num_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder provides operations to call the isoWeekNum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isoWeekNum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isoWeekNum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isoWeekNum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_post_request_body.go deleted file mode 100644 index 5eda793d91..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["per"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPer(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPer gets the per property value. The per property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("per") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("per", m.GetPer()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPer sets the per property value. The per property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("per", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_request_builder.go deleted file mode 100644 index 22c2b176b7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ispmt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder provides operations to call the ispmt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ispmt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ispmt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ispmt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_post_request_body.go deleted file mode 100644 index 7b5e364f2e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_request_builder.go deleted file mode 100644 index d5924c291e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_isref_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder provides operations to call the isref method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/isref", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action isref -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action isref -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_post_request_body.go deleted file mode 100644 index 1b88fa6269..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_request_builder.go deleted file mode 100644 index 8580604c20..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_kurt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder provides operations to call the kurt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/kurt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action kurt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action kurt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_post_request_body.go deleted file mode 100644 index 4dfe2ef832..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["k"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetK(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetK gets the k property value. The k property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("k") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("k", m.GetK()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetK sets the k property value. The k property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBody) SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("k", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_request_builder.go deleted file mode 100644 index 7541844a45..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_large_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder provides operations to call the large method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/large", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action large -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action large -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_post_request_body.go deleted file mode 100644 index d468935f78..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_request_builder.go deleted file mode 100644 index a3d34365f6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lcm_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder provides operations to call the lcm method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lcm", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action lcm -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action lcm -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_post_request_body.go deleted file mode 100644 index ce97e15321..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numChars"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumChars(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumChars gets the numChars property value. The numChars property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numChars") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numChars", m.GetNumChars()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumChars sets the numChars property value. The numChars property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numChars", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_request_builder.go deleted file mode 100644 index a2f2250c6a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_left_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder provides operations to call the left method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/left", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action left -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action left -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_post_request_body.go deleted file mode 100644 index 31620a3463..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumBytes(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumBytes gets the numBytes property value. The numBytes property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numBytes") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numBytes", m.GetNumBytes()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumBytes sets the numBytes property value. The numBytes property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numBytes", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_request_builder.go deleted file mode 100644 index 2b8d81296d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_leftb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder provides operations to call the leftb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/leftb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action leftb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action leftb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_post_request_body.go deleted file mode 100644 index d416a8d094..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_request_builder.go deleted file mode 100644 index 93ecd234ed..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_len_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder provides operations to call the len method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/len", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action len -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action len -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_post_request_body.go deleted file mode 100644 index bf79d4dc3d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_request_builder.go deleted file mode 100644 index 3863063373..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lenb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder provides operations to call the lenb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lenb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action lenb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action lenb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_post_request_body.go deleted file mode 100644 index 2655524482..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_request_builder.go deleted file mode 100644 index e164bc5939..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ln_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder provides operations to call the ln method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ln", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ln -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ln -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_post_request_body.go deleted file mode 100644 index 80c2677c4a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_request_builder.go deleted file mode 100644 index 1a742b4cb9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log10_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder provides operations to call the log10 method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log10", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action log10 -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action log10 -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10PostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_post_request_body.go deleted file mode 100644 index 558ced20ef..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_request_builder.go deleted file mode 100644 index 992fe1661c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder provides operations to call the logNorm_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action logNorm_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action logNorm_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_post_request_body.go deleted file mode 100644 index 91fd917b8e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_request_builder.go deleted file mode 100644 index 14acc520a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_norm_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder provides operations to call the logNorm_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/logNorm_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action logNorm_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action logNorm_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_post_request_body.go deleted file mode 100644 index 530ba0f879..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBase gets the base property value. The base property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) GetBase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("base") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["base"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBase(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("base", m.GetBase()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBase sets the base property value. The base property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) SetBase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("base", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBase()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBase(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_request_builder.go deleted file mode 100644 index d3d0dd4a28..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_log_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder provides operations to call the log method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/log", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action log -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action log -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_post_request_body.go deleted file mode 100644 index 2d2f4aa3dd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["lookupValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lookupVector"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupVector(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["resultVector"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetResultVector(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLookupValue gets the lookupValue property value. The lookupValue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupValue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetLookupVector gets the lookupVector property value. The lookupVector property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetLookupVector()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupVector") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetResultVector gets the resultVector property value. The resultVector property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) GetResultVector()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("resultVector") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("lookupValue", m.GetLookupValue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lookupVector", m.GetLookupVector()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("resultVector", m.GetResultVector()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLookupValue sets the lookupValue property value. The lookupValue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupValue", value) - if err != nil { - panic(err) - } -} -// SetLookupVector sets the lookupVector property value. The lookupVector property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) SetLookupVector(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupVector", value) - if err != nil { - panic(err) - } -} -// SetResultVector sets the resultVector property value. The resultVector property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBody) SetResultVector(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("resultVector", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLookupVector()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetResultVector()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLookupVector(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetResultVector(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_request_builder.go deleted file mode 100644 index d85264b694..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lookup_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder provides operations to call the lookup method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lookup", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action lookup -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action lookup -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_post_request_body.go deleted file mode 100644 index 9ccb6bc79e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_request_builder.go deleted file mode 100644 index 6324a9259f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_lower_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder provides operations to call the lower method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/lower", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action lower -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action lower -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_post_request_body.go deleted file mode 100644 index dac010d18f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["lookupArray"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lookupValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["matchType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMatchType(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLookupArray gets the lookupArray property value. The lookupArray property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetLookupArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupArray") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetLookupValue gets the lookupValue property value. The lookupValue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupValue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMatchType gets the matchType property value. The matchType property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) GetMatchType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("matchType") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("lookupArray", m.GetLookupArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lookupValue", m.GetLookupValue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("matchType", m.GetMatchType()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLookupArray sets the lookupArray property value. The lookupArray property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) SetLookupArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupArray", value) - if err != nil { - panic(err) - } -} -// SetLookupValue sets the lookupValue property value. The lookupValue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupValue", value) - if err != nil { - panic(err) - } -} -// SetMatchType sets the matchType property value. The matchType property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBody) SetMatchType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("matchType", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLookupArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMatchType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLookupArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMatchType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_request_builder.go deleted file mode 100644 index ccadc37e18..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_match_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder provides operations to call the match method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/match", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action match -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action match -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_post_request_body.go deleted file mode 100644 index 3ca2b99844..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_request_builder.go deleted file mode 100644 index eed2d5ebb4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder provides operations to call the maxA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/maxA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action maxA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action maxA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_post_request_body.go deleted file mode 100644 index 9d14a3033d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_request_builder.go deleted file mode 100644 index 7c9d0ed638..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_max_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder provides operations to call the max method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/max", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action max -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action max -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_post_request_body.go deleted file mode 100644 index c6112a1e96..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCoupon gets the coupon property value. The coupon property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("coupon") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["coupon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCoupon(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("coupon", m.GetCoupon()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetCoupon sets the coupon property value. The coupon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("coupon", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_request_builder.go deleted file mode 100644 index afab61ad22..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mduration_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder provides operations to call the mduration method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mduration", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action mduration -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action mduration -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_post_request_body.go deleted file mode 100644 index 366cb4a72c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_request_builder.go deleted file mode 100644 index 191ee7f408..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_median_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder provides operations to call the median method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/median", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action median -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action median -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_post_request_body.go deleted file mode 100644 index e89b98121f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numChars"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumChars(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumChars gets the numChars property value. The numChars property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numChars") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numChars", m.GetNumChars()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumChars sets the numChars property value. The numChars property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numChars", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_request_builder.go deleted file mode 100644 index 3294574515..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mid_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder provides operations to call the mid method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mid", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action mid -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action mid -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_post_request_body.go deleted file mode 100644 index 2606e62c33..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumBytes(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumBytes gets the numBytes property value. The numBytes property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numBytes") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numBytes", m.GetNumBytes()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumBytes sets the numBytes property value. The numBytes property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numBytes", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_request_builder.go deleted file mode 100644 index 3ea7189929..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_midb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder provides operations to call the midb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/midb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action midb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action midb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_post_request_body.go deleted file mode 100644 index 5f78e093a8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_request_builder.go deleted file mode 100644 index ef5db32d79..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder provides operations to call the minA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action minA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action minA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_post_request_body.go deleted file mode 100644 index af7b920edb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_request_builder.go deleted file mode 100644 index 6a6b0f3d0a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_min_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder provides operations to call the min method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/min", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action min -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action min -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_post_request_body.go deleted file mode 100644 index db48a20626..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_request_builder.go deleted file mode 100644 index 4d7a9a1916..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_minute_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder provides operations to call the minute method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/minute", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action minute -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action minute -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinutePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_post_request_body.go deleted file mode 100644 index 51b02f15ed..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["financeRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFinanceRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["reinvestRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReinvestRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFinanceRate gets the financeRate property value. The financeRate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetFinanceRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("financeRate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetReinvestRate gets the reinvestRate property value. The reinvestRate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetReinvestRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reinvestRate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("financeRate", m.GetFinanceRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("reinvestRate", m.GetReinvestRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFinanceRate sets the financeRate property value. The financeRate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) SetFinanceRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("financeRate", value) - if err != nil { - panic(err) - } -} -// SetReinvestRate sets the reinvestRate property value. The reinvestRate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) SetReinvestRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reinvestRate", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFinanceRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetReinvestRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFinanceRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetReinvestRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_request_builder.go deleted file mode 100644 index 798732f571..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mirr_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder provides operations to call the mirr method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mirr", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action mirr -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action mirr -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_post_request_body.go deleted file mode 100644 index 90de883771..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDivisor gets the divisor property value. The divisor property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) GetDivisor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("divisor") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["divisor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDivisor(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("divisor", m.GetDivisor()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDivisor sets the divisor property value. The divisor property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) SetDivisor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("divisor", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDivisor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDivisor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_request_builder.go deleted file mode 100644 index 9feb59d67b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mod_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder provides operations to call the mod method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mod", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action mod -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action mod -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsModPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_post_request_body.go deleted file mode 100644 index 4bcd967176..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_request_builder.go deleted file mode 100644 index 1637d91f8d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_month_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder provides operations to call the month method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/month", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action month -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action month -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_post_request_body.go deleted file mode 100644 index 9a691bc78f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["multiple"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMultiple(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMultiple gets the multiple property value. The multiple property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) GetMultiple()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("multiple") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("multiple", m.GetMultiple()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMultiple sets the multiple property value. The multiple property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) SetMultiple(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("multiple", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMultiple()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMultiple(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_request_builder.go deleted file mode 100644 index f6f282db52..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_mround_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder provides operations to call the mround method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/mround", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action mround -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action mround -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_post_request_body.go deleted file mode 100644 index c0a6357789..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_request_builder.go deleted file mode 100644 index c0deea14a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_multi_nomial_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder provides operations to call the multiNomial method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/multiNomial", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action multiNomial -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action multiNomial -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_post_request_body.go deleted file mode 100644 index c85790ef7b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_request_builder.go deleted file mode 100644 index 70881a309c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_n_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder provides operations to call the n method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/n", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action n -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action n -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_na_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_na_request_builder.go deleted file mode 100644 index e4e00f756a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_na_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder provides operations to call the na method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/na", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action na -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action na -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_post_request_body.go deleted file mode 100644 index 6993597235..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberF"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberF(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probabilityS"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbabilityS(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumberF gets the numberF property value. The numberF property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetNumberF()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberF") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberS gets the numberS property value. The numberS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetProbabilityS gets the probabilityS property value. The probabilityS property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probabilityS") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberF", m.GetNumberF()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberS", m.GetNumberS()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probabilityS", m.GetProbabilityS()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetNumberF sets the numberF property value. The numberF property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetNumberF(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberF", value) - if err != nil { - panic(err) - } -} -// SetNumberS sets the numberS property value. The numberS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberS", value) - if err != nil { - panic(err) - } -} -// SetProbabilityS sets the probabilityS property value. The probabilityS property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBody) SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probabilityS", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberF()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbabilityS()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberF(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbabilityS(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_request_builder.go deleted file mode 100644 index 9df903be98..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_neg_binom_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder provides operations to call the negBinom_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/negBinom_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action negBinom_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action negBinom_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_post_request_body.go deleted file mode 100644 index bccb40273a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndDate gets the endDate property value. The endDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["holidays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHolidays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["weekend"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetWeekend(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetHolidays gets the holidays property value. The holidays property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("holidays") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetWeekend gets the weekend property value. The weekend property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) GetWeekend()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("weekend") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endDate", m.GetEndDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("holidays", m.GetHolidays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("weekend", m.GetWeekend()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndDate sets the endDate property value. The endDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endDate", value) - if err != nil { - panic(err) - } -} -// SetHolidays sets the holidays property value. The holidays property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("holidays", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -// SetWeekend sets the weekend property value. The weekend property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBody) SetWeekend(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("weekend", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetWeekend()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetWeekend(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_request_builder.go deleted file mode 100644 index fb6e1bb95e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_intl_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder provides operations to call the networkDays_Intl method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays_Intl", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action networkDays_Intl -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action networkDays_Intl -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_post_request_body.go deleted file mode 100644 index a0f711f4a7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEndDate gets the endDate property value. The endDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["holidays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHolidays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetHolidays gets the holidays property value. The holidays property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("holidays") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("endDate", m.GetEndDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("holidays", m.GetHolidays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEndDate sets the endDate property value. The endDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endDate", value) - if err != nil { - panic(err) - } -} -// SetHolidays sets the holidays property value. The holidays property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("holidays", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_request_builder.go deleted file mode 100644 index 278dedc622..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_network_days_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder provides operations to call the networkDays method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/networkDays", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action networkDays -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action networkDays -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_post_request_body.go deleted file mode 100644 index 7fa7b24817..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetEffectRate gets the effectRate property value. The effectRate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) GetEffectRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("effectRate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["effectRate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEffectRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["npery"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNpery(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNpery gets the npery property value. The npery property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) GetNpery()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("npery") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("effectRate", m.GetEffectRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("npery", m.GetNpery()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetEffectRate sets the effectRate property value. The effectRate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) SetEffectRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("effectRate", value) - if err != nil { - panic(err) - } -} -// SetNpery sets the npery property value. The npery property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBody) SetNpery(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("npery", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetEffectRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNpery()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetEffectRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNpery(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_request_builder.go deleted file mode 100644 index 72815d256c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nominal_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder provides operations to call the nominal method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nominal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action nominal -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action nominal -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_post_request_body.go deleted file mode 100644 index 2c5fa0296b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_request_builder.go deleted file mode 100644 index 1a1ec4c9b8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder provides operations to call the norm_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action norm_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action norm_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_post_request_body.go deleted file mode 100644 index 80fbb7a869..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_request_builder.go deleted file mode 100644 index 54e145bc7d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder provides operations to call the norm_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action norm_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action norm_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_post_request_body.go deleted file mode 100644 index 75d8837bc5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["z"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetZ(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetZ gets the z property value. The z property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) GetZ()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("z") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("z", m.GetZ()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetZ sets the z property value. The z property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBody) SetZ(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("z", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetZ()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetZ(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_request_builder.go deleted file mode 100644 index cd885411ab..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder provides operations to call the norm_S_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action norm_S_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action norm_S_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_post_request_body.go deleted file mode 100644 index 519985d07f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_request_builder.go deleted file mode 100644 index 582a528637..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_norm_s_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder provides operations to call the norm_S_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/norm_S_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action norm_S_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action norm_S_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_post_request_body.go deleted file mode 100644 index 743d2780b9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["logical"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLogical(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLogical gets the logical property value. The logical property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) GetLogical()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("logical") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("logical", m.GetLogical()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetLogical sets the logical property value. The logical property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBody) SetLogical(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("logical", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetLogical()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetLogical(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_request_builder.go deleted file mode 100644 index d8bc0f1522..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_not_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder provides operations to call the not method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/not", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action not -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action not -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_now_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_now_request_builder.go deleted file mode 100644 index b33d737fa6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_now_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder provides operations to call the now method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/now", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action now -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action now -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_post_request_body.go deleted file mode 100644 index a910c5bf67..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pmt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPmt(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPmt gets the pmt property value. The pmt property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pmt") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pmt", m.GetPmt()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetPmt sets the pmt property value. The pmt property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pmt", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_request_builder.go deleted file mode 100644 index 81b5d9eec7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_nper_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder provides operations to call the nper method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/nper", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action nper -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action nper -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_post_request_body.go deleted file mode 100644 index 310be66b64..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_request_builder.go deleted file mode 100644 index f15f322ee0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_npv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder provides operations to call the npv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/npv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action npv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action npv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_post_request_body.go deleted file mode 100644 index 1b939c4019..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDecimalSeparator gets the decimalSeparator property value. The decimalSeparator property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetDecimalSeparator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("decimalSeparator") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["decimalSeparator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDecimalSeparator(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["groupSeparator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetGroupSeparator(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetGroupSeparator gets the groupSeparator property value. The groupSeparator property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetGroupSeparator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("groupSeparator") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("decimalSeparator", m.GetDecimalSeparator()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("groupSeparator", m.GetGroupSeparator()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDecimalSeparator sets the decimalSeparator property value. The decimalSeparator property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) SetDecimalSeparator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("decimalSeparator", value) - if err != nil { - panic(err) - } -} -// SetGroupSeparator sets the groupSeparator property value. The groupSeparator property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) SetGroupSeparator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("groupSeparator", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDecimalSeparator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetGroupSeparator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDecimalSeparator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetGroupSeparator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_request_builder.go deleted file mode 100644 index d49e03aaf3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_number_value_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder provides operations to call the numberValue method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/numberValue", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action numberValue -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action numberValue -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValuePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_post_request_body.go deleted file mode 100644 index 1477137e96..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_request_builder.go deleted file mode 100644 index 617000b2da..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_bin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder provides operations to call the oct2Bin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Bin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oct2Bin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oct2Bin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_post_request_body.go deleted file mode 100644 index 737337bf22..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_request_builder.go deleted file mode 100644 index 59ba812182..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_dec_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder provides operations to call the oct2Dec method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Dec", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oct2Dec -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oct2Dec -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_post_request_body.go deleted file mode 100644 index b6d9ecb88c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["places"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPlaces(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPlaces gets the places property value. The places property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("places") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("places", m.GetPlaces()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPlaces sets the places property value. The places property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBody) SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("places", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPlaces()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPlaces(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_request_builder.go deleted file mode 100644 index 7be8e3ea07..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_oct2_hex_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder provides operations to call the oct2Hex method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oct2Hex", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oct2Hex -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oct2Hex -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_post_request_body.go deleted file mode 100644 index 3150591552..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_post_request_body.go +++ /dev/null @@ -1,409 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["firstCoupon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFirstCoupon(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFirstCoupon gets the firstCoupon property value. The firstCoupon property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetFirstCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("firstCoupon") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("firstCoupon", m.GetFirstCoupon()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFirstCoupon sets the firstCoupon property value. The firstCoupon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetFirstCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("firstCoupon", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFirstCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFirstCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_request_builder.go deleted file mode 100644 index fe6e5b0c9d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_price_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder provides operations to call the oddFPrice method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFPrice", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oddFPrice -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oddFPrice -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_post_request_body.go deleted file mode 100644 index ef0411f077..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_post_request_body.go +++ /dev/null @@ -1,409 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["firstCoupon"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFirstCoupon(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFirstCoupon gets the firstCoupon property value. The firstCoupon property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetFirstCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("firstCoupon") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("firstCoupon", m.GetFirstCoupon()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFirstCoupon sets the firstCoupon property value. The firstCoupon property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetFirstCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("firstCoupon", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFirstCoupon()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFirstCoupon(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_request_builder.go deleted file mode 100644 index 244276e9b7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_f_yield_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder provides operations to call the oddFYield method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddFYield", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oddFYield -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oddFYield -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_post_request_body.go deleted file mode 100644 index a85d325acc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_post_request_body.go +++ /dev/null @@ -1,372 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lastInterest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLastInterest(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetLastInterest gets the lastInterest property value. The lastInterest property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetLastInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lastInterest") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lastInterest", m.GetLastInterest()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetLastInterest sets the lastInterest property value. The lastInterest property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetLastInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lastInterest", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLastInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLastInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_request_builder.go deleted file mode 100644 index aa3a864254..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_price_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder provides operations to call the oddLPrice method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLPrice", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oddLPrice -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oddLPrice -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_post_request_body.go deleted file mode 100644 index 6eb99f9d8d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_post_request_body.go +++ /dev/null @@ -1,372 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lastInterest"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLastInterest(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetLastInterest gets the lastInterest property value. The lastInterest property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetLastInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lastInterest") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lastInterest", m.GetLastInterest()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetLastInterest sets the lastInterest property value. The lastInterest property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetLastInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lastInterest", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLastInterest()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLastInterest(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_request_builder.go deleted file mode 100644 index 89261f6706..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_l_yield_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder provides operations to call the oddLYield method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/oddLYield", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action oddLYield -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action oddLYield -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_post_request_body.go deleted file mode 100644 index 067e9a2cf2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_request_builder.go deleted file mode 100644 index 0fc8dcb872..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_odd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder provides operations to call the odd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/odd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action odd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action odd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_post_request_body.go deleted file mode 100644 index cecfff723b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_request_builder.go deleted file mode 100644 index dbb1d2ca4d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_or_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder provides operations to call the or method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/or", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action or -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action or -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_post_request_body.go deleted file mode 100644 index 81e7f3d3ce..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_request_builder.go deleted file mode 100644 index fc397c21e3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pduration_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder provides operations to call the pduration method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pduration", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action pduration -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action pduration -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_post_request_body.go deleted file mode 100644 index c490966445..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_request_builder.go deleted file mode 100644 index e8abf2e7bc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_exc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder provides operations to call the percentRank_Exc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Exc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action percentRank_Exc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action percentRank_Exc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_post_request_body.go deleted file mode 100644 index 444f52a75e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["significance"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSignificance(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSignificance gets the significance property value. The significance property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("significance") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("significance", m.GetSignificance()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSignificance sets the significance property value. The significance property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("significance", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSignificance()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSignificance(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_request_builder.go deleted file mode 100644 index be23928ae2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percent_rank_inc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder provides operations to call the percentRank_Inc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentRank_Inc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action percentRank_Inc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action percentRank_Inc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_post_request_body.go deleted file mode 100644 index 61d77aaae7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["k"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetK(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetK gets the k property value. The k property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("k") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("k", m.GetK()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetK sets the k property value. The k property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBody) SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("k", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_request_builder.go deleted file mode 100644 index 5586261a9c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_exc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder provides operations to call the percentile_Exc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Exc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action percentile_Exc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action percentile_Exc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_post_request_body.go deleted file mode 100644 index db09122d53..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["k"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetK(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetK gets the k property value. The k property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("k") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("k", m.GetK()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetK sets the k property value. The k property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBody) SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("k", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_request_builder.go deleted file mode 100644 index 4ad6946055..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_percentile_inc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder provides operations to call the percentile_Inc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/percentile_Inc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action percentile_Inc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action percentile_Inc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_post_request_body.go deleted file mode 100644 index 19ffdef776..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberChosen"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberChosen(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberChosen gets the numberChosen property value. The numberChosen property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberChosen") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberChosen", m.GetNumberChosen()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumberChosen sets the numberChosen property value. The numberChosen property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBody) SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberChosen", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_request_builder.go deleted file mode 100644 index 8fe3cd8abd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permut_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder provides operations to call the permut method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permut", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action permut -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action permut -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_post_request_body.go deleted file mode 100644 index 9eddcbee78..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numberChosen"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberChosen(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumberChosen gets the numberChosen property value. The numberChosen property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberChosen") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numberChosen", m.GetNumberChosen()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumberChosen sets the numberChosen property value. The numberChosen property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBody) SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberChosen", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumberChosen()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumberChosen(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_request_builder.go deleted file mode 100644 index 2efe0ab93d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_permutationa_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder provides operations to call the permutationa method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/permutationa", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action permutationa -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action permutationa -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_post_request_body.go deleted file mode 100644 index c8bfa09057..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_request_builder.go deleted file mode 100644 index e97e6b19d2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_phi_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder provides operations to call the phi method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/phi", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action phi -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action phi -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pi_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pi_request_builder.go deleted file mode 100644 index faccff567a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pi_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder provides operations to call the pi method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pi", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action pi -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action pi -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_post_request_body.go deleted file mode 100644 index d7ed29bce4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_request_builder.go deleted file mode 100644 index 3d603cc604..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pmt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder provides operations to call the pmt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pmt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action pmt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action pmt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_post_request_body.go deleted file mode 100644 index 7eeacb73bb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_request_builder.go deleted file mode 100644 index 749b2a2484..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_poisson_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder provides operations to call the poisson_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/poisson_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action poisson_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action poisson_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_post_request_body.go deleted file mode 100644 index 62f185661c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["power"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPower(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPower gets the power property value. The power property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) GetPower()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("power") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("power", m.GetPower()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetPower sets the power property value. The power property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBody) SetPower(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("power", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPower()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPower(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_request_builder.go deleted file mode 100644 index 7b5534bd9a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_power_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder provides operations to call the power method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/power", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action power -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action power -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_post_request_body.go deleted file mode 100644 index e8a61d659b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["per"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPer(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPer gets the per property value. The per property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("per") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("per", m.GetPer()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPer sets the per property value. The per property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("per", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_request_builder.go deleted file mode 100644 index b121b69eae..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_ppmt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder provides operations to call the ppmt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/ppmt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action ppmt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action ppmt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_post_request_body.go deleted file mode 100644 index c51a498254..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDiscount gets the discount property value. The discount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("discount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["discount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDiscount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("discount", m.GetDiscount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetDiscount sets the discount property value. The discount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("discount", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_request_builder.go deleted file mode 100644 index 0a63290351..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_disc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder provides operations to call the priceDisc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceDisc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action priceDisc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action priceDisc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_post_request_body.go deleted file mode 100644 index 78c4edd6f3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_request_builder.go deleted file mode 100644 index e07791a7ed..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_mat_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder provides operations to call the priceMat method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/priceMat", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action priceMat -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action priceMat -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_post_request_body.go deleted file mode 100644 index 161fadab80..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_post_request_body.go +++ /dev/null @@ -1,335 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["yld"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetYld(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetYld gets the yld property value. The yld property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("yld") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("yld", m.GetYld()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -// SetYld sets the yld property value. The yld property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBody) SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("yld", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetYld()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetYld(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_request_builder.go deleted file mode 100644 index 656e46274d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_price_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder provides operations to call the price method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/price", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action price -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action price -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_post_request_body.go deleted file mode 100644 index fc3a87a313..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_request_builder.go deleted file mode 100644 index c6f644bae7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_product_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder provides operations to call the product method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/product", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action product -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action product -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_post_request_body.go deleted file mode 100644 index ba6322c9d6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_request_builder.go deleted file mode 100644 index 2861f02c3b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_proper_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder provides operations to call the proper method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/proper", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action proper -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action proper -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_post_request_body.go deleted file mode 100644 index 9e6a184e1d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pmt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPmt(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPmt gets the pmt property value. The pmt property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pmt") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pmt", m.GetPmt()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPmt sets the pmt property value. The pmt property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pmt", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_request_builder.go deleted file mode 100644 index 054fed9aca..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_pv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder provides operations to call the pv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/pv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action pv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action pv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_post_request_body.go deleted file mode 100644 index 256da8b8b2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["quart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetQuart(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetQuart gets the quart property value. The quart property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) GetQuart()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("quart") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("quart", m.GetQuart()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetQuart sets the quart property value. The quart property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBody) SetQuart(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("quart", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetQuart()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetQuart(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_request_builder.go deleted file mode 100644 index 824f8deb3b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_exc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder provides operations to call the quartile_Exc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Exc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action quartile_Exc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action quartile_Exc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_post_request_body.go deleted file mode 100644 index 9bae8600db..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["quart"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetQuart(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetQuart gets the quart property value. The quart property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) GetQuart()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("quart") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("quart", m.GetQuart()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetQuart sets the quart property value. The quart property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBody) SetQuart(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("quart", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetQuart()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetQuart(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_request_builder.go deleted file mode 100644 index 790200f3b1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quartile_inc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder provides operations to call the quartile_Inc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quartile_Inc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action quartile_Inc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action quartile_Inc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_post_request_body.go deleted file mode 100644 index 3513d454ff..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDenominator gets the denominator property value. The denominator property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) GetDenominator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("denominator") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["denominator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDenominator(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numerator"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumerator(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumerator gets the numerator property value. The numerator property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) GetNumerator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numerator") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("denominator", m.GetDenominator()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numerator", m.GetNumerator()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDenominator sets the denominator property value. The denominator property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) SetDenominator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("denominator", value) - if err != nil { - panic(err) - } -} -// SetNumerator sets the numerator property value. The numerator property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBody) SetNumerator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numerator", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDenominator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumerator()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDenominator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumerator(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_request_builder.go deleted file mode 100644 index c4d875e4ae..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_quotient_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder provides operations to call the quotient method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/quotient", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action quotient -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action quotient -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_post_request_body.go deleted file mode 100644 index 1f51973235..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAngle gets the angle property value. The angle property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) GetAngle()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("angle") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["angle"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAngle(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("angle", m.GetAngle()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAngle sets the angle property value. The angle property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) SetAngle(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("angle", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAngle()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetAngle(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_request_builder.go deleted file mode 100644 index ec24d95c27..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_radians_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder provides operations to call the radians method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/radians", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action radians -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action radians -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_post_request_body.go deleted file mode 100644 index 630698b3b9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBottom gets the bottom property value. The bottom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) GetBottom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("bottom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["bottom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBottom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["top"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTop(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetTop gets the top property value. The top property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) GetTop()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("top") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("bottom", m.GetBottom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("top", m.GetTop()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBottom sets the bottom property value. The bottom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) SetBottom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("bottom", value) - if err != nil { - panic(err) - } -} -// SetTop sets the top property value. The top property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBody) SetTop(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("top", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBottom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTop()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBottom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTop(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_request_builder.go deleted file mode 100644 index c200e8f108..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_between_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder provides operations to call the randBetween method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/randBetween", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action randBetween -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action randBetween -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_request_builder.go deleted file mode 100644 index bad98b11e4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rand_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder provides operations to call the rand method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rand", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rand -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rand -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_post_request_body.go deleted file mode 100644 index d87436051e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["order"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOrder(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["ref"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRef(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetOrder gets the order property value. The order property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetOrder()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("order") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRef gets the ref property value. The ref property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) GetRef()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("ref") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("order", m.GetOrder()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("ref", m.GetRef()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetOrder sets the order property value. The order property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) SetOrder(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("order", value) - if err != nil { - panic(err) - } -} -// SetRef sets the ref property value. The ref property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBody) SetRef(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("ref", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetOrder()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRef()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetOrder(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRef(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_request_builder.go deleted file mode 100644 index 12c521d4f3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_avg_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder provides operations to call the rank_Avg method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Avg", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rank_Avg -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rank_Avg -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_post_request_body.go deleted file mode 100644 index a63f78efb8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["order"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOrder(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["ref"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRef(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetOrder gets the order property value. The order property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetOrder()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("order") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRef gets the ref property value. The ref property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) GetRef()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("ref") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("order", m.GetOrder()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("ref", m.GetRef()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetOrder sets the order property value. The order property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) SetOrder(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("order", value) - if err != nil { - panic(err) - } -} -// SetRef sets the ref property value. The ref property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBody) SetRef(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("ref", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetOrder()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRef()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetOrder(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRef(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_request_builder.go deleted file mode 100644 index bf30f160d0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rank_eq_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder provides operations to call the rank_Eq method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rank_Eq", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rank_Eq -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rank_Eq -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_post_request_body.go deleted file mode 100644 index 7909395e65..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["guess"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetGuess(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pmt"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPmt(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetGuess gets the guess property value. The guess property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("guess") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPmt gets the pmt property value. The pmt property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pmt") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("guess", m.GetGuess()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pmt", m.GetPmt()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetGuess sets the guess property value. The guess property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("guess", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPmt sets the pmt property value. The pmt property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pmt", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBody) SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPmt()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPmt(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_request_builder.go deleted file mode 100644 index 64bc7ae672..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rate_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder provides operations to call the rate method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rate", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rate -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rate -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRatePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_post_request_body.go deleted file mode 100644 index f176c5f2a7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDiscount gets the discount property value. The discount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("discount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["discount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDiscount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["investment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInvestment(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInvestment gets the investment property value. The investment property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetInvestment()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("investment") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("discount", m.GetDiscount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("investment", m.GetInvestment()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetDiscount sets the discount property value. The discount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("discount", value) - if err != nil { - panic(err) - } -} -// SetInvestment sets the investment property value. The investment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetInvestment(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("investment", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetInvestment()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetInvestment(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_request_builder.go deleted file mode 100644 index 7cf31f3320..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_received_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder provides operations to call the received method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/received", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action received -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action received -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_post_request_body.go deleted file mode 100644 index 20733ba175..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["newText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNewText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumBytes(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["oldText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOldText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNewText gets the newText property value. The newText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("newText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumBytes gets the numBytes property value. The numBytes property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numBytes") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetOldText gets the oldText property value. The oldText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("oldText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("newText", m.GetNewText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numBytes", m.GetNumBytes()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("oldText", m.GetOldText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNewText sets the newText property value. The newText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("newText", value) - if err != nil { - panic(err) - } -} -// SetNumBytes sets the numBytes property value. The numBytes property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numBytes", value) - if err != nil { - panic(err) - } -} -// SetOldText sets the oldText property value. The oldText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("oldText", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_request_builder.go deleted file mode 100644 index ae8def4d71..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_b_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder provides operations to call the replaceB method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replaceB", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action replaceB -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action replaceB -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_post_request_body.go deleted file mode 100644 index a5eb27d818..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["newText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNewText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numChars"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumChars(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["oldText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOldText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNewText gets the newText property value. The newText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("newText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumChars gets the numChars property value. The numChars property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numChars") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetOldText gets the oldText property value. The oldText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("oldText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartNum gets the startNum property value. The startNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("newText", m.GetNewText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numChars", m.GetNumChars()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("oldText", m.GetOldText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startNum", m.GetStartNum()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNewText sets the newText property value. The newText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("newText", value) - if err != nil { - panic(err) - } -} -// SetNumChars sets the numChars property value. The numChars property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numChars", value) - if err != nil { - panic(err) - } -} -// SetOldText sets the oldText property value. The oldText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("oldText", value) - if err != nil { - panic(err) - } -} -// SetStartNum sets the startNum property value. The startNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBody) SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startNum", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_request_builder.go deleted file mode 100644 index 31dbf64546..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_replace_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder provides operations to call the replace method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/replace", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action replace -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action replace -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplacePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_post_request_body.go deleted file mode 100644 index aaf7e27b08..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numberTimes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumberTimes(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumberTimes gets the numberTimes property value. The numberTimes property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) GetNumberTimes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numberTimes") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numberTimes", m.GetNumberTimes()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumberTimes sets the numberTimes property value. The numberTimes property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) SetNumberTimes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numberTimes", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumberTimes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumberTimes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_request_builder.go deleted file mode 100644 index 34a89f9c92..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rept_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder provides operations to call the rept method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rept", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rept -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rept -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_request_builder.go deleted file mode 100644 index 4fff4108fc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_request_builder.go +++ /dev/null @@ -1,1987 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder provides operations to manage the functions property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetQueryParameters get functions from storage -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Abs provides operations to call the abs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Abs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAbsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AccrInt provides operations to call the accrInt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AccrInt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AccrIntM provides operations to call the accrIntM method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AccrIntM()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAccrIntMRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Acos provides operations to call the acos method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Acos()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcosRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Acosh provides operations to call the acosh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Acosh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcoshRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Acot provides operations to call the acot method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Acot()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Acoth provides operations to call the acoth method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Acoth()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAcothRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AmorDegrc provides operations to call the amorDegrc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AmorDegrc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorDegrcRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AmorLinc provides operations to call the amorLinc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AmorLinc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAmorLincRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// And provides operations to call the and method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) And()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAndRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Arabic provides operations to call the arabic method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Arabic()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsArabicRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Areas provides operations to call the areas method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Areas()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAreasRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Asc provides operations to call the asc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Asc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Asin provides operations to call the asin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Asin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Asinh provides operations to call the asinh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Asinh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAsinhRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Atan provides operations to call the atan method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Atan()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Atan2 provides operations to call the atan2 method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Atan2()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtan2RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Atanh provides operations to call the atanh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Atanh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAtanhRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AveDev provides operations to call the aveDev method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AveDev()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAveDevRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Average provides operations to call the average method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Average()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AverageA provides operations to call the averageA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AverageA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AverageIf provides operations to call the averageIf method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AverageIf()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AverageIfs provides operations to call the averageIfs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) AverageIfs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsAverageIfsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BahtText provides operations to call the bahtText method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) BahtText()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBahtTextRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Base provides operations to call the base method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Base()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBaseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BesselI provides operations to call the besselI method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) BesselI()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselIRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BesselJ provides operations to call the besselJ method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) BesselJ()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselJRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BesselK provides operations to call the besselK method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) BesselK()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselKRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BesselY provides operations to call the besselY method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) BesselY()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBesselYRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Beta_Dist provides operations to call the beta_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Beta_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Beta_Inv provides operations to call the beta_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Beta_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBeta_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bin2Dec provides operations to call the bin2Dec method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bin2Dec()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2DecRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bin2Hex provides operations to call the bin2Hex method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bin2Hex()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2HexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bin2Oct provides operations to call the bin2Oct method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bin2Oct()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBin2OctRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Binom_Dist provides operations to call the binom_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Binom_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Binom_Dist_Range provides operations to call the binom_Dist_Range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Binom_Dist_Range()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_Dist_RangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Binom_Inv provides operations to call the binom_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Binom_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBinom_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bitand provides operations to call the bitand method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bitand()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitandRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bitlshift provides operations to call the bitlshift method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bitlshift()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitlshiftRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bitor provides operations to call the bitor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bitor()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bitrshift provides operations to call the bitrshift method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bitrshift()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitrshiftRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Bitxor provides operations to call the bitxor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Bitxor()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsBitxorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ceiling_Math provides operations to call the ceiling_Math method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ceiling_Math()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_MathRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ceiling_Precise provides operations to call the ceiling_Precise method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ceiling_Precise()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCeiling_PreciseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Char provides operations to call the char method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Char()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCharRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ChiSq_Dist provides operations to call the chiSq_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ChiSq_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ChiSq_Dist_RT provides operations to call the chiSq_Dist_RT method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ChiSq_Dist_RT()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Dist_RTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ChiSq_Inv provides operations to call the chiSq_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ChiSq_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ChiSq_Inv_RT provides operations to call the chiSq_Inv_RT method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ChiSq_Inv_RT()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChiSq_Inv_RTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Choose provides operations to call the choose method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Choose()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsChooseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Clean provides operations to call the clean method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Clean()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCleanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Code provides operations to call the code method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Code()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCodeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to call the columns method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Columns()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Combin provides operations to call the combin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Combin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Combina provides operations to call the combina method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Combina()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCombinaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Complex provides operations to call the complex method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Complex()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsComplexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Concatenate provides operations to call the concatenate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Concatenate()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConcatenateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Confidence_Norm provides operations to call the confidence_Norm method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Confidence_Norm()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_NormRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Confidence_T provides operations to call the confidence_T method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Confidence_T()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConfidence_TRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Convert provides operations to call the convert method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Convert()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsConvertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Cos provides operations to call the cos method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Cos()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCosRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Cosh provides operations to call the cosh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Cosh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoshRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Cot provides operations to call the cot method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Cot()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Coth provides operations to call the coth method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Coth()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCothRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CountA provides operations to call the countA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CountA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CountBlank provides operations to call the countBlank method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CountBlank()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountBlankRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CountIf provides operations to call the countIf method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CountIf()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CountIfs provides operations to call the countIfs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CountIfs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCountIfsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupDayBs provides operations to call the coupDayBs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupDayBs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDayBsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupDays provides operations to call the coupDays method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupDays()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupDaysNc provides operations to call the coupDaysNc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupDaysNc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupDaysNcRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupNcd provides operations to call the coupNcd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupNcd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNcdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupNum provides operations to call the coupNum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupNum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupNumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CoupPcd provides operations to call the coupPcd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CoupPcd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCoupPcdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Csc provides operations to call the csc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Csc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Csch provides operations to call the csch method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Csch()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCschRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CumIPmt provides operations to call the cumIPmt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CumIPmt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumIPmtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CumPrinc provides operations to call the cumPrinc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) CumPrinc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsCumPrincRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Date provides operations to call the date method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Date()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Datevalue provides operations to call the datevalue method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Datevalue()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDatevalueRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Daverage provides operations to call the daverage method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Daverage()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaverageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Day provides operations to call the day method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Day()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDayRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Days provides operations to call the days method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Days()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDaysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Days360 provides operations to call the days360 method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Days360()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDays360RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Db provides operations to call the db method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Db()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dbcs provides operations to call the dbcs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dbcs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDbcsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dcount provides operations to call the dcount method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dcount()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DcountA provides operations to call the dcountA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DcountA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDcountARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ddb provides operations to call the ddb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ddb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDdbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dec2Bin provides operations to call the dec2Bin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dec2Bin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2BinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dec2Hex provides operations to call the dec2Hex method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dec2Hex()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2HexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dec2Oct provides operations to call the dec2Oct method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dec2Oct()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDec2OctRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Decimal provides operations to call the decimal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Decimal()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDecimalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Degrees provides operations to call the degrees method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Degrees()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDegreesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property functions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Delta provides operations to call the delta method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Delta()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DevSq provides operations to call the devSq method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DevSq()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDevSqRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dget provides operations to call the dget method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dget()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDgetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Disc provides operations to call the disc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Disc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDiscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dmax provides operations to call the dmax method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dmax()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDmaxRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dmin provides operations to call the dmin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dmin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDminRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dollar provides operations to call the dollar method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dollar()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DollarDe provides operations to call the dollarDe method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DollarDe()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarDeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DollarFr provides operations to call the dollarFr method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DollarFr()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDollarFrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dproduct provides operations to call the dproduct method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dproduct()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDproductRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DstDev provides operations to call the dstDev method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DstDev()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DstDevP provides operations to call the dstDevP method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DstDevP()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDstDevPRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dsum provides operations to call the dsum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dsum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDsumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Duration provides operations to call the duration method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Duration()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Dvar provides operations to call the dvar method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Dvar()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DvarP provides operations to call the dvarP method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) DvarP()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsDvarPRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ecma_Ceiling provides operations to call the ecma_Ceiling method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ecma_Ceiling()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEcma_CeilingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Edate provides operations to call the edate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Edate()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEdateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Effect provides operations to call the effect method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Effect()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEffectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// EoMonth provides operations to call the eoMonth method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) EoMonth()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEoMonthRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Erf provides operations to call the erf method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Erf()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Erf_Precise provides operations to call the erf_Precise method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Erf_Precise()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErf_PreciseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ErfC provides operations to call the erfC method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ErfC()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfCRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ErfC_Precise provides operations to call the erfC_Precise method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ErfC_Precise()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsErfC_PreciseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Error_Type provides operations to call the error_Type method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Error_Type()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsError_TypeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Even provides operations to call the even method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Even()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsEvenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Exact provides operations to call the exact method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Exact()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExactRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Exp provides operations to call the exp method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Exp()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Expon_Dist provides operations to call the expon_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Expon_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsExpon_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// F_Dist provides operations to call the f_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) F_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// F_Dist_RT provides operations to call the f_Dist_RT method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) F_Dist_RT()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Dist_RTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// F_Inv provides operations to call the f_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) F_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// F_Inv_RT provides operations to call the f_Inv_RT method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) F_Inv_RT()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsF_Inv_RTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fact provides operations to call the fact method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Fact()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// FactDouble provides operations to call the factDouble method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) FactDouble()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFactDoubleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// False provides operations to call the false method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) False()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFalseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Find provides operations to call the find method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Find()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// FindB provides operations to call the findB method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) FindB()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFindBRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fisher provides operations to call the fisher method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Fisher()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// FisherInv provides operations to call the fisherInv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) FisherInv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFisherInvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fixed provides operations to call the fixed method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Fixed()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFixedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Floor_Math provides operations to call the floor_Math method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Floor_Math()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_MathRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Floor_Precise provides operations to call the floor_Precise method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Floor_Precise()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFloor_PreciseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fv provides operations to call the fv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Fv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fvschedule provides operations to call the fvschedule method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Fvschedule()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsFvscheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Gamma provides operations to call the gamma method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Gamma()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Gamma_Dist provides operations to call the gamma_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Gamma_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Gamma_Inv provides operations to call the gamma_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Gamma_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGamma_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GammaLn provides operations to call the gammaLn method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) GammaLn()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GammaLn_Precise provides operations to call the gammaLn_Precise method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) GammaLn_Precise()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGammaLn_PreciseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Gauss provides operations to call the gauss method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Gauss()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGaussRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Gcd provides operations to call the gcd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Gcd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGcdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GeoMean provides operations to call the geoMean method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) GeoMean()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeoMeanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GeStep provides operations to call the geStep method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) GeStep()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsGeStepRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get get functions from storage -// returns a WorkbookFunctionsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable), nil -} -// HarMean provides operations to call the harMean method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) HarMean()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHarMeanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hex2Bin provides operations to call the hex2Bin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hex2Bin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2BinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hex2Dec provides operations to call the hex2Dec method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hex2Dec()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2DecRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hex2Oct provides operations to call the hex2Oct method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hex2Oct()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHex2OctRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hlookup provides operations to call the hlookup method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hlookup()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHlookupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hour provides operations to call the hour method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hour()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHourRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Hyperlink provides operations to call the hyperlink method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Hyperlink()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHyperlinkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// HypGeom_Dist provides operations to call the hypGeom_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) HypGeom_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsHypGeom_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IfEscaped provides operations to call the if method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IfEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImAbs provides operations to call the imAbs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImAbs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImAbsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Imaginary provides operations to call the imaginary method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Imaginary()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImaginaryRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImArgument provides operations to call the imArgument method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImArgument()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImArgumentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImConjugate provides operations to call the imConjugate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImConjugate()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImConjugateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImCos provides operations to call the imCos method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImCos()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCosRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImCosh provides operations to call the imCosh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImCosh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCoshRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImCot provides operations to call the imCot method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImCot()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImCsc provides operations to call the imCsc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImCsc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImCsch provides operations to call the imCsch method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImCsch()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImCschRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImDiv provides operations to call the imDiv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImDiv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImDivRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImExp provides operations to call the imExp method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImExp()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImExpRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImLn provides operations to call the imLn method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImLn()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImLog10 provides operations to call the imLog10 method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImLog10()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog10RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImLog2 provides operations to call the imLog2 method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImLog2()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImLog2RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImPower provides operations to call the imPower method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImPower()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImPowerRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImProduct provides operations to call the imProduct method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImProduct()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImProductRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImReal provides operations to call the imReal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImReal()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImRealRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSec provides operations to call the imSec method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSec()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSecRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSech provides operations to call the imSech method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSech()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSechRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSin provides operations to call the imSin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSinh provides operations to call the imSinh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSinh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSinhRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSqrt provides operations to call the imSqrt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSqrt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSqrtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSub provides operations to call the imSub method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSub()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSubRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImSum provides operations to call the imSum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImSum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImSumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ImTan provides operations to call the imTan method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ImTan()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsImTanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Int provides operations to call the int method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Int()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IntRate provides operations to call the intRate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IntRate()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIntRateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ipmt provides operations to call the ipmt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ipmt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIpmtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Irr provides operations to call the irr method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Irr()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIrrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsErr provides operations to call the isErr method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsErr()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsError provides operations to call the isError method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsError()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsErrorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsEven provides operations to call the isEven method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsEven()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsEvenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsFormula provides operations to call the isFormula method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsFormula()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsFormulaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsLogical provides operations to call the isLogical method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsLogical()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsLogicalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsNA provides operations to call the isNA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsNA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsNonText provides operations to call the isNonText method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsNonText()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNonTextRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsNumber provides operations to call the isNumber method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsNumber()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsNumberRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Iso_Ceiling provides operations to call the iso_Ceiling method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Iso_Ceiling()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIso_CeilingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsOdd provides operations to call the isOdd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsOdd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsOddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsoWeekNum provides operations to call the isoWeekNum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsoWeekNum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsoWeekNumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ispmt provides operations to call the ispmt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ispmt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIspmtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Isref provides operations to call the isref method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Isref()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsrefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// IsText provides operations to call the isText method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) IsText()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsIsTextRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Kurt provides operations to call the kurt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Kurt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsKurtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Large provides operations to call the large method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Large()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLargeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lcm provides operations to call the lcm method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Lcm()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLcmRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Left provides operations to call the left method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Left()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Leftb provides operations to call the leftb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Leftb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLeftbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Len provides operations to call the len method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Len()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lenb provides operations to call the lenb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Lenb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLenbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ln provides operations to call the ln method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ln()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Log provides operations to call the log method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Log()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Log10 provides operations to call the log10 method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Log10()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLog10RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LogNorm_Dist provides operations to call the logNorm_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) LogNorm_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LogNorm_Inv provides operations to call the logNorm_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) LogNorm_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLogNorm_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lookup provides operations to call the lookup method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Lookup()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLookupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Lower provides operations to call the lower method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Lower()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsLowerRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Match provides operations to call the match method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Match()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMatchRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Max provides operations to call the max method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Max()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MaxA provides operations to call the maxA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) MaxA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMaxARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Mduration provides operations to call the mduration method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Mduration()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMdurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Median provides operations to call the median method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Median()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMedianRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Mid provides operations to call the mid method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Mid()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Midb provides operations to call the midb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Midb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMidbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Min provides operations to call the min method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Min()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MinA provides operations to call the minA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) MinA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Minute provides operations to call the minute method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Minute()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMinuteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Mirr provides operations to call the mirr method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Mirr()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMirrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Mod provides operations to call the mod method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Mod()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsModRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Month provides operations to call the month method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Month()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMonthRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Mround provides operations to call the mround method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Mround()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMroundRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// MultiNomial provides operations to call the multiNomial method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) MultiNomial()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsMultiNomialRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// N provides operations to call the n method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) N()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Na provides operations to call the na method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Na()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NegBinom_Dist provides operations to call the negBinom_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) NegBinom_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNegBinom_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NetworkDays provides operations to call the networkDays method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) NetworkDays()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDaysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NetworkDays_Intl provides operations to call the networkDays_Intl method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) NetworkDays_Intl()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNetworkDays_IntlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Nominal provides operations to call the nominal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Nominal()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNominalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Norm_Dist provides operations to call the norm_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Norm_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Norm_Inv provides operations to call the norm_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Norm_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Norm_S_Dist provides operations to call the norm_S_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Norm_S_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Norm_S_Inv provides operations to call the norm_S_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Norm_S_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNorm_S_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Not provides operations to call the not method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Not()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Now provides operations to call the now method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Now()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Nper provides operations to call the nper method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Nper()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNperRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Npv provides operations to call the npv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Npv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNpvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NumberValue provides operations to call the numberValue method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) NumberValue()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsNumberValueRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Oct2Bin provides operations to call the oct2Bin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Oct2Bin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2BinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Oct2Dec provides operations to call the oct2Dec method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Oct2Dec()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2DecRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Oct2Hex provides operations to call the oct2Hex method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Oct2Hex()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOct2HexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Odd provides operations to call the odd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Odd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// OddFPrice provides operations to call the oddFPrice method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) OddFPrice()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFPriceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// OddFYield provides operations to call the oddFYield method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) OddFYield()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddFYieldRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// OddLPrice provides operations to call the oddLPrice method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) OddLPrice()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLPriceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// OddLYield provides operations to call the oddLYield method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) OddLYield()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOddLYieldRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Or provides operations to call the or method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Or()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsOrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property functions in storage -// returns a WorkbookFunctionsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable), nil -} -// Pduration provides operations to call the pduration method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Pduration()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPdurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Percentile_Exc provides operations to call the percentile_Exc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Percentile_Exc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_ExcRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Percentile_Inc provides operations to call the percentile_Inc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Percentile_Inc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentile_IncRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// PercentRank_Exc provides operations to call the percentRank_Exc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) PercentRank_Exc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_ExcRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// PercentRank_Inc provides operations to call the percentRank_Inc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) PercentRank_Inc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPercentRank_IncRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Permut provides operations to call the permut method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Permut()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Permutationa provides operations to call the permutationa method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Permutationa()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPermutationaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Phi provides operations to call the phi method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Phi()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPhiRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pi provides operations to call the pi method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Pi()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPiRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pmt provides operations to call the pmt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Pmt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPmtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Poisson_Dist provides operations to call the poisson_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Poisson_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPoisson_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Power provides operations to call the power method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Power()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPowerRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Ppmt provides operations to call the ppmt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Ppmt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPpmtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Price provides operations to call the price method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Price()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// PriceDisc provides operations to call the priceDisc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) PriceDisc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceDiscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// PriceMat provides operations to call the priceMat method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) PriceMat()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPriceMatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Product provides operations to call the product method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Product()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProductRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Proper provides operations to call the proper method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Proper()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsProperRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Pv provides operations to call the pv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Pv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsPvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Quartile_Exc provides operations to call the quartile_Exc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Quartile_Exc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_ExcRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Quartile_Inc provides operations to call the quartile_Inc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Quartile_Inc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuartile_IncRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Quotient provides operations to call the quotient method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Quotient()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsQuotientRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Radians provides operations to call the radians method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Radians()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRadiansRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rand provides operations to call the rand method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rand()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RandBetween provides operations to call the randBetween method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) RandBetween()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRandBetweenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rank_Avg provides operations to call the rank_Avg method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rank_Avg()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_AvgRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rank_Eq provides operations to call the rank_Eq method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rank_Eq()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRank_EqRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rate provides operations to call the rate method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rate()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Received provides operations to call the received method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Received()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReceivedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Replace provides operations to call the replace method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Replace()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ReplaceB provides operations to call the replaceB method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ReplaceB()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReplaceBRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rept provides operations to call the rept method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rept()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsReptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Right provides operations to call the right method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Right()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rightb provides operations to call the rightb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rightb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Roman provides operations to call the roman method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Roman()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Round provides operations to call the round method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Round()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RoundDown provides operations to call the roundDown method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) RoundDown()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RoundUp provides operations to call the roundUp method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) RoundUp()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rows provides operations to call the rows method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rows()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rri provides operations to call the rri method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Rri()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sec provides operations to call the sec method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sec()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sech provides operations to call the sech method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sech()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Second provides operations to call the second method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Second()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SeriesSum provides operations to call the seriesSum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) SeriesSum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sheet provides operations to call the sheet method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sheet()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sheets provides operations to call the sheets method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sheets()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sign provides operations to call the sign method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sign()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sin provides operations to call the sin method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sin()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sinh provides operations to call the sinh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sinh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Skew provides operations to call the skew method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Skew()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Skew_p provides operations to call the skew_p method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Skew_p()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sln provides operations to call the sln method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sln()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Small provides operations to call the small method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Small()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sqrt provides operations to call the sqrt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sqrt()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SqrtPi provides operations to call the sqrtPi method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) SqrtPi()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Standardize provides operations to call the standardize method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Standardize()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// StDev_P provides operations to call the stDev_P method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) StDev_P()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// StDev_S provides operations to call the stDev_S method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) StDev_S()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// StDevA provides operations to call the stDevA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) StDevA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// StDevPA provides operations to call the stDevPA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) StDevPA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Substitute provides operations to call the substitute method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Substitute()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Subtotal provides operations to call the subtotal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Subtotal()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sum provides operations to call the sum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Sum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SumIf provides operations to call the sumIf method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) SumIf()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SumIfs provides operations to call the sumIfs method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) SumIfs()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SumSq provides operations to call the sumSq method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) SumSq()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Syd provides operations to call the syd method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Syd()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T provides operations to call the t method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T_Dist provides operations to call the t_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T_Dist_2T provides operations to call the t_Dist_2T method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T_Dist_2T()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T_Dist_RT provides operations to call the t_Dist_RT method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T_Dist_RT()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T_Inv provides operations to call the t_Inv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T_Inv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// T_Inv_2T provides operations to call the t_Inv_2T method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) T_Inv_2T()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tan provides operations to call the tan method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Tan()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Tanh provides operations to call the tanh method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Tanh()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TbillEq provides operations to call the tbillEq method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) TbillEq()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TbillPrice provides operations to call the tbillPrice method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) TbillPrice()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TbillYield provides operations to call the tbillYield method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) TbillYield()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Text provides operations to call the text method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Text()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Time provides operations to call the time method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Time()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Timevalue provides operations to call the timevalue method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Timevalue()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Today provides operations to call the today method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Today()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property functions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation get functions from storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property functions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionsable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Trim provides operations to call the trim method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Trim()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TrimMean provides operations to call the trimMean method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) TrimMean()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// True provides operations to call the true method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) True()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Trunc provides operations to call the trunc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Trunc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// TypeEscaped provides operations to call the type method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) TypeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Unichar provides operations to call the unichar method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Unichar()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Unicode provides operations to call the unicode method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Unicode()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Upper provides operations to call the upper method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Upper()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Usdollar provides operations to call the usdollar method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Usdollar()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Value provides operations to call the value method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Value()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Var_P provides operations to call the var_P method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Var_P()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Var_S provides operations to call the var_S method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Var_S()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// VarA provides operations to call the varA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) VarA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// VarPA provides operations to call the varPA method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) VarPA()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Vdb provides operations to call the vdb method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Vdb()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Vlookup provides operations to call the vlookup method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Vlookup()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Weekday provides operations to call the weekday method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Weekday()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WeekNum provides operations to call the weekNum method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) WeekNum()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Weibull_Dist provides operations to call the weibull_Dist method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Weibull_Dist()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// WorkDay provides operations to call the workDay method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) WorkDay()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WorkDay_Intl provides operations to call the workDay_Intl method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) WorkDay_Intl()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Xirr provides operations to call the xirr method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Xirr()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Xnpv provides operations to call the xnpv method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Xnpv()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Xor provides operations to call the xor method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Xor()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Year provides operations to call the year method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Year()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// YearFrac provides operations to call the yearFrac method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) YearFrac()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Yield provides operations to call the yield method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Yield()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// YieldDisc provides operations to call the yieldDisc method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) YieldDisc()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// YieldMat provides operations to call the yieldMat method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) YieldMat()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Z_Test provides operations to call the z_Test method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) Z_Test()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_post_request_body.go deleted file mode 100644 index da42096744..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numChars"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumChars(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumChars gets the numChars property value. The numChars property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numChars") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numChars", m.GetNumChars()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumChars sets the numChars property value. The numChars property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numChars", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumChars()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumChars(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_request_builder.go deleted file mode 100644 index d2f65d8dd7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_right_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder provides operations to call the right method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/right", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action right -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action right -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_post_request_body.go deleted file mode 100644 index 82297f8960..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["numBytes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumBytes(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumBytes gets the numBytes property value. The numBytes property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numBytes") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("numBytes", m.GetNumBytes()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumBytes sets the numBytes property value. The numBytes property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numBytes", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumBytes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumBytes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_request_builder.go deleted file mode 100644 index bcfdaaa45c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rightb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder provides operations to call the rightb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rightb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rightb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rightb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRightbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_post_request_body.go deleted file mode 100644 index aab6f4a599..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["form"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetForm(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetForm gets the form property value. The form property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) GetForm()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("form") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("form", m.GetForm()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetForm sets the form property value. The form property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) SetForm(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("form", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetForm()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetForm(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_request_builder.go deleted file mode 100644 index 90bc0c2fb5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_roman_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder provides operations to call the roman method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roman", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action roman -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action roman -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRomanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_post_request_body.go deleted file mode 100644 index d6d12651e2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numDigits"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumDigits(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumDigits gets the numDigits property value. The numDigits property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numDigits") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numDigits", m.GetNumDigits()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumDigits sets the numDigits property value. The numDigits property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBody) SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numDigits", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_request_builder.go deleted file mode 100644 index 629fc2a72c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_down_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder provides operations to call the roundDown method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundDown", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action roundDown -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action roundDown -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundDownRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_post_request_body.go deleted file mode 100644 index 5f8a4746ff..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numDigits"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumDigits(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumDigits gets the numDigits property value. The numDigits property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numDigits") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numDigits", m.GetNumDigits()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumDigits sets the numDigits property value. The numDigits property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBody) SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numDigits", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_request_builder.go deleted file mode 100644 index a7d513629b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder provides operations to call the round method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/round", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action round -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action round -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_post_request_body.go deleted file mode 100644 index cc219a03d6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numDigits"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumDigits(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumDigits gets the numDigits property value. The numDigits property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numDigits") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numDigits", m.GetNumDigits()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumDigits sets the numDigits property value. The numDigits property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBody) SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numDigits", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_request_builder.go deleted file mode 100644 index f02f9c3747..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_round_up_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder provides operations to call the roundUp method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/roundUp", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action roundUp -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action roundUp -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRoundUpRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_post_request_body.go deleted file mode 100644 index bb34094917..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_request_builder.go deleted file mode 100644 index 5c8080c86f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rows_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder provides operations to call the rows method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rows", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rows -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rows -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_post_request_body.go deleted file mode 100644 index 1b077e0474..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["nper"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNper(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pv"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPv(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFv gets the fv property value. The fv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("fv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNper gets the nper property value. The nper property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("nper") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPv gets the pv property value. The pv property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pv") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("fv", m.GetFv()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("nper", m.GetNper()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pv", m.GetPv()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFv sets the fv property value. The fv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("fv", value) - if err != nil { - panic(err) - } -} -// SetNper sets the nper property value. The nper property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("nper", value) - if err != nil { - panic(err) - } -} -// SetPv sets the pv property value. The pv property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBody) SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pv", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNper()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPv()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNper(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPv(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_request_builder.go deleted file mode 100644 index f5bdb58176..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_rri_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder provides operations to call the rri method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/rri", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action rri -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action rri -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRriRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_post_request_body.go deleted file mode 100644 index 689ac24881..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_request_builder.go deleted file mode 100644 index 843dca0651..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sec_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder provides operations to call the sec method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sec", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sec -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sec -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_post_request_body.go deleted file mode 100644 index 5ddef53ec8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_request_builder.go deleted file mode 100644 index 7b89ac8ffe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sech_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder provides operations to call the sech method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sech", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sech -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sech -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSechRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_post_request_body.go deleted file mode 100644 index 018d2d0d70..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_request_builder.go deleted file mode 100644 index 916443a480..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_second_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder provides operations to call the second method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/second", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action second -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action second -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSecondRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_post_request_body.go deleted file mode 100644 index 875be9a3b3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCoefficients gets the coefficients property value. The coefficients property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetCoefficients()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("coefficients") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["coefficients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCoefficients(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["m"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetM(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["n"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetN(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetM gets the m property value. The m property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetM()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("m") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetN gets the n property value. The n property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("n") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("coefficients", m.GetCoefficients()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("m", m.GetM()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("n", m.GetN()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCoefficients sets the coefficients property value. The coefficients property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetCoefficients(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("coefficients", value) - if err != nil { - panic(err) - } -} -// SetM sets the m property value. The m property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetM(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("m", value) - if err != nil { - panic(err) - } -} -// SetN sets the n property value. The n property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("n", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCoefficients()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetM()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetN()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCoefficients(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetM(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetN(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_request_builder.go deleted file mode 100644 index 9888108e9c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_series_sum_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder provides operations to call the seriesSum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/seriesSum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action seriesSum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action seriesSum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSeriesSumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_post_request_body.go deleted file mode 100644 index 21c3eb086f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_request_builder.go deleted file mode 100644 index a06a6c1d4f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheet_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder provides operations to call the sheet method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheet", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sheet -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sheet -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_post_request_body.go deleted file mode 100644 index d590467d36..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["reference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReference(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetReference gets the reference property value. The reference property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reference") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("reference", m.GetReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetReference sets the reference property value. The reference property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBody) SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_request_builder.go deleted file mode 100644 index 0df088cc81..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sheets_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder provides operations to call the sheets method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sheets", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sheets -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sheets -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSheetsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_post_request_body.go deleted file mode 100644 index 952cd7ebd9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_request_builder.go deleted file mode 100644 index bbe96ce573..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sign_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder provides operations to call the sign method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sign", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sign -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sign -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSignRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_post_request_body.go deleted file mode 100644 index 81083ff0f0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_request_builder.go deleted file mode 100644 index ceffb2f3fa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sin_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder provides operations to call the sin method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sin", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sin -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sin -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_post_request_body.go deleted file mode 100644 index 5dbf38e902..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_request_builder.go deleted file mode 100644 index 61f19849c5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sinh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder provides operations to call the sinh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sinh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sinh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sinh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSinhRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_post_request_body.go deleted file mode 100644 index d648a37d79..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_request_builder.go deleted file mode 100644 index 7af7cd199e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_p_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder provides operations to call the skew_p method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew_p", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action skew_p -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action skew_p -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkew_pRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_post_request_body.go deleted file mode 100644 index 0ccdd5234b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_request_builder.go deleted file mode 100644 index 57f9e08f5b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_skew_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder provides operations to call the skew method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/skew", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action skew -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action skew -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSkewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_post_request_body.go deleted file mode 100644 index 0c67fd80ec..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["life"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLife(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLife gets the life property value. The life property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("life") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("life", m.GetLife()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetLife sets the life property value. The life property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("life", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_request_builder.go deleted file mode 100644 index 4c5680669e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sln_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder provides operations to call the sln method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sln", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sln -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sln -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSlnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_post_request_body.go deleted file mode 100644 index d927508952..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["k"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetK(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetK gets the k property value. The k property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("k") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("k", m.GetK()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetK sets the k property value. The k property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBody) SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("k", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetK()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetK(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_request_builder.go deleted file mode 100644 index 629f81eec3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_small_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder provides operations to call the small method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/small", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action small -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action small -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSmallRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_post_request_body.go deleted file mode 100644 index 084d729536..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_request_builder.go deleted file mode 100644 index b0f01844fd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_pi_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder provides operations to call the sqrtPi method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrtPi", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sqrtPi -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sqrtPi -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPiRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_post_request_body.go deleted file mode 100644 index e683cb1647..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_request_builder.go deleted file mode 100644 index 69a650ce93..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sqrt_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder provides operations to call the sqrt method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sqrt", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sqrt -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sqrt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSqrtRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_post_request_body.go deleted file mode 100644 index 0580d68894..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_request_builder.go deleted file mode 100644 index 2c064dbea3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder provides operations to call the stDevA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action stDevA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action stDevA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_post_request_body.go deleted file mode 100644 index 9da8bc9247..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_request_builder.go deleted file mode 100644 index bce9a94eb0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder provides operations to call the stDevPA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDevPA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action stDevPA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action stDevPA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDevPARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_post_request_body.go deleted file mode 100644 index 0c01c9a4e2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_request_builder.go deleted file mode 100644 index 87bb7a7f9d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_p_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder provides operations to call the stDev_P method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_P", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action stDev_P -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action stDev_P -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_PRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_post_request_body.go deleted file mode 100644 index 0af74b9f2f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_request_builder.go deleted file mode 100644 index eda594d8d4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_st_dev_s_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder provides operations to call the stDev_S method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/stDev_S", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action stDev_S -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action stDev_S -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStDev_SRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_post_request_body.go deleted file mode 100644 index 11c5f3dafe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["mean"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMean(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["standardDev"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStandardDev(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMean gets the mean property value. The mean property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("mean") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStandardDev gets the standardDev property value. The standardDev property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("standardDev") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("mean", m.GetMean()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("standardDev", m.GetStandardDev()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMean sets the mean property value. The mean property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("mean", value) - if err != nil { - panic(err) - } -} -// SetStandardDev sets the standardDev property value. The standardDev property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("standardDev", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMean()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStandardDev()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMean(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStandardDev(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_request_builder.go deleted file mode 100644 index 5dfb44c4d7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_standardize_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder provides operations to call the standardize method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/standardize", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action standardize -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action standardize -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsStandardizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_post_request_body.go deleted file mode 100644 index 8f346fc27a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["instanceNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetInstanceNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["newText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNewText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["oldText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetOldText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetInstanceNum gets the instanceNum property value. The instanceNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetInstanceNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("instanceNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNewText gets the newText property value. The newText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("newText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetOldText gets the oldText property value. The oldText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("oldText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("instanceNum", m.GetInstanceNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("newText", m.GetNewText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("oldText", m.GetOldText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetInstanceNum sets the instanceNum property value. The instanceNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetInstanceNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("instanceNum", value) - if err != nil { - panic(err) - } -} -// SetNewText sets the newText property value. The newText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("newText", value) - if err != nil { - panic(err) - } -} -// SetOldText sets the oldText property value. The oldText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("oldText", value) - if err != nil { - panic(err) - } -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetInstanceNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNewText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetOldText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetInstanceNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNewText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetOldText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_request_builder.go deleted file mode 100644 index bd9ebf7770..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_substitute_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder provides operations to call the substitute method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/substitute", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action substitute -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action substitute -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstitutePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubstituteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_post_request_body.go deleted file mode 100644 index f44809b691..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["functionNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFunctionNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFunctionNum gets the functionNum property value. The functionNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) GetFunctionNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("functionNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("functionNum", m.GetFunctionNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFunctionNum sets the functionNum property value. The functionNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) SetFunctionNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("functionNum", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFunctionNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFunctionNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_request_builder.go deleted file mode 100644 index 2eb27fb15f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_subtotal_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder provides operations to call the subtotal method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/subtotal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action subtotal -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action subtotal -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSubtotalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_post_request_body.go deleted file mode 100644 index 1388efeef0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCriteria gets the criteria property value. The criteria property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("criteria") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["criteria"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCriteria(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["range"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeEscaped(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["sumRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSumRange(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRangeEscaped gets the range property value. The range property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSumRange gets the sumRange property value. The sumRange property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) GetSumRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sumRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("criteria", m.GetCriteria()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("range", m.GetRangeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sumRange", m.GetSumRange()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCriteria sets the criteria property value. The criteria property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("criteria", value) - if err != nil { - panic(err) - } -} -// SetRangeEscaped sets the range property value. The range property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeEscaped", value) - if err != nil { - panic(err) - } -} -// SetSumRange sets the sumRange property value. The sumRange property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBody) SetSumRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sumRange", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCriteria()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRangeEscaped()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSumRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCriteria(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRangeEscaped(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSumRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_request_builder.go deleted file mode 100644 index 207a82ad29..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_if_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder provides operations to call the sumIf method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIf", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sumIf -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sumIf -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_post_request_body.go deleted file mode 100644 index 8f28da2a33..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["sumRange"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSumRange(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSumRange gets the sumRange property value. The sumRange property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) GetSumRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sumRange") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("sumRange", m.GetSumRange()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSumRange sets the sumRange property value. The sumRange property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) SetSumRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sumRange", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSumRange()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSumRange(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_request_builder.go deleted file mode 100644 index 3959489c0f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_ifs_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder provides operations to call the sumIfs method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumIfs", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sumIfs -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sumIfs -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumIfsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_post_request_body.go deleted file mode 100644 index 9155e4215c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_request_builder.go deleted file mode 100644 index fdd310fbde..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder provides operations to call the sum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_post_request_body.go deleted file mode 100644 index 231e820b6b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_request_builder.go deleted file mode 100644 index bb290eed62..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_sum_sq_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder provides operations to call the sumSq method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/sumSq", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action sumSq -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action sumSq -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSumSqRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_post_request_body.go deleted file mode 100644 index f79ed16141..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["life"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLife(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["per"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPer(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLife gets the life property value. The life property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("life") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPer gets the per property value. The per property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("per") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("life", m.GetLife()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("per", m.GetPer()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetLife sets the life property value. The life property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("life", value) - if err != nil { - panic(err) - } -} -// SetPer sets the per property value. The per property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("per", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPer()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPer(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_request_builder.go deleted file mode 100644 index a0e9152324..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_syd_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder provides operations to call the syd method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/syd", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action syd -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action syd -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsSydRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_post_request_body.go deleted file mode 100644 index 6a6318566f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_request_builder.go deleted file mode 100644 index 38171f7dfc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_2_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder provides operations to call the t_Dist_2T method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_2T", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t_Dist_2T -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t_Dist_2T -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_2TRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_post_request_body.go deleted file mode 100644 index 5d93b26633..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_post_request_body.go deleted file mode 100644 index 1029f4c85c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_request_builder.go deleted file mode 100644 index 3b13209731..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_r_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder provides operations to call the t_Dist_RT method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist_RT", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t_Dist_RT -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t_Dist_RT -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Dist_RTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_request_builder.go deleted file mode 100644 index 56c863041b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder provides operations to call the t_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_post_request_body.go deleted file mode 100644 index 079dbb434a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_request_builder.go deleted file mode 100644 index 304dc06f81..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_2_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder provides operations to call the t_Inv_2T method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv_2T", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t_Inv_2T -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t_Inv_2T -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_Inv_2TRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_post_request_body.go deleted file mode 100644 index dbd3f8f2d8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDegFreedom gets the degFreedom property value. The degFreedom property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("degFreedom") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["degFreedom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDegFreedom(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["probability"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetProbability(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetProbability gets the probability property value. The probability property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("probability") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("degFreedom", m.GetDegFreedom()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("probability", m.GetProbability()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDegFreedom sets the degFreedom property value. The degFreedom property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("degFreedom", value) - if err != nil { - panic(err) - } -} -// SetProbability sets the probability property value. The probability property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBody) SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("probability", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDegFreedom()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetProbability()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDegFreedom(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetProbability(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_request_builder.go deleted file mode 100644 index cfc5a1c915..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_inv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder provides operations to call the t_Inv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t_Inv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t_Inv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t_Inv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsT_InvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_post_request_body.go deleted file mode 100644 index 6ec77c652e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_request_builder.go deleted file mode 100644 index 96746d3501..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_t_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder provides operations to call the t method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/t", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action t -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action t -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_post_request_body.go deleted file mode 100644 index 0a2df4170e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_request_builder.go deleted file mode 100644 index cd3784e733..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tan_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder provides operations to call the tan method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tan", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action tan -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action tan -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_post_request_body.go deleted file mode 100644 index 43a6bd4bff..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_request_builder.go deleted file mode 100644 index c58f2e4d8f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tanh_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder provides operations to call the tanh method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tanh", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action tanh -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action tanh -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTanhRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_post_request_body.go deleted file mode 100644 index 7656e395a9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDiscount gets the discount property value. The discount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("discount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["discount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDiscount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("discount", m.GetDiscount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDiscount sets the discount property value. The discount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("discount", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_request_builder.go deleted file mode 100644 index 12f8919f98..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_eq_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder provides operations to call the tbillEq method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillEq", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action tbillEq -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action tbillEq -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillEqRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_post_request_body.go deleted file mode 100644 index 10898efb42..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDiscount gets the discount property value. The discount property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("discount") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["discount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDiscount(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("discount", m.GetDiscount()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDiscount sets the discount property value. The discount property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("discount", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDiscount()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDiscount(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_request_builder.go deleted file mode 100644 index 81ae406657..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_price_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder provides operations to call the tbillPrice method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillPrice", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action tbillPrice -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action tbillPrice -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPricePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillPriceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_post_request_body.go deleted file mode 100644 index 2221388649..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_request_builder.go deleted file mode 100644 index 871c018a17..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_tbill_yield_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder provides operations to call the tbillYield method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/tbillYield", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action tbillYield -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action tbillYield -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTbillYieldRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_post_request_body.go deleted file mode 100644 index 6e57ab4877..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["formatText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFormatText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFormatText gets the formatText property value. The formatText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) GetFormatText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("formatText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("formatText", m.GetFormatText()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFormatText sets the formatText property value. The formatText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) SetFormatText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("formatText", value) - if err != nil { - panic(err) - } -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFormatText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFormatText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_request_builder.go deleted file mode 100644 index a8201b6e44..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_text_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder provides operations to call the text method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/text", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action text -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action text -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTextRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_post_request_body.go deleted file mode 100644 index 2b645b4455..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["hour"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHour(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["minute"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMinute(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["second"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSecond(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetHour gets the hour property value. The hour property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetHour()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("hour") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMinute gets the minute property value. The minute property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetMinute()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("minute") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSecond gets the second property value. The second property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) GetSecond()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("second") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("hour", m.GetHour()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("minute", m.GetMinute()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("second", m.GetSecond()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetHour sets the hour property value. The hour property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) SetHour(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("hour", value) - if err != nil { - panic(err) - } -} -// SetMinute sets the minute property value. The minute property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) SetMinute(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("minute", value) - if err != nil { - panic(err) - } -} -// SetSecond sets the second property value. The second property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBody) SetSecond(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("second", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHour()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMinute()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSecond()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHour(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMinute(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSecond(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_request_builder.go deleted file mode 100644 index 281b929856..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_time_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder provides operations to call the time method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/time", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action time -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action time -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_post_request_body.go deleted file mode 100644 index 7374c5363b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["timeText"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTimeText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetTimeText gets the timeText property value. The timeText property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) GetTimeText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("timeText") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("timeText", m.GetTimeText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetTimeText sets the timeText property value. The timeText property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBody) SetTimeText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("timeText", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetTimeText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetTimeText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_request_builder.go deleted file mode 100644 index d0d5a18384..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_timevalue_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder provides operations to call the timevalue method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/timevalue", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action timevalue -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action timevalue -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevaluePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTimevalueRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_today_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_today_request_builder.go deleted file mode 100644 index 15a25c26df..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_today_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder provides operations to call the today method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/today", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action today -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action today -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTodayRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_post_request_body.go deleted file mode 100644 index 424a3eecb8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["percent"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPercent(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetPercent gets the percent property value. The percent property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) GetPercent()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("percent") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("percent", m.GetPercent()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetPercent sets the percent property value. The percent property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBody) SetPercent(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("percent", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetPercent()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetPercent(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_request_builder.go deleted file mode 100644 index b0ecf59902..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_mean_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder provides operations to call the trimMean method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trimMean", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action trimMean -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action trimMean -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimMeanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_post_request_body.go deleted file mode 100644 index 4ea4b9cbf8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_request_builder.go deleted file mode 100644 index 96eb2daa53..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trim_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder provides operations to call the trim method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trim", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action trim -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action trim -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrimRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_true_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_true_request_builder.go deleted file mode 100644 index 606341f84a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_true_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder provides operations to call the true method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/true", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action true -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action true -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTrueRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_post_request_body.go deleted file mode 100644 index e08a98f100..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["numDigits"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumDigits(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNumDigits gets the numDigits property value. The numDigits property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("numDigits") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("numDigits", m.GetNumDigits()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -// SetNumDigits sets the numDigits property value. The numDigits property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBody) SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("numDigits", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumDigits()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumDigits(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_request_builder.go deleted file mode 100644 index a0bd1fd20a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_trunc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder provides operations to call the trunc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/trunc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action trunc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action trunc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTruncRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_post_request_body.go deleted file mode 100644 index 1acc93197e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBody) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_request_builder.go deleted file mode 100644 index 1fe3f3bd67..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_type_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder provides operations to call the type method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/type", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action type -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action type -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsTypeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_post_request_body.go deleted file mode 100644 index 6cd897a066..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_request_builder.go deleted file mode 100644 index c32fa5e35b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unichar_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder provides operations to call the unichar method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unichar", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action unichar -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action unichar -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicharRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_post_request_body.go deleted file mode 100644 index 9f5fe4cee7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_request_builder.go deleted file mode 100644 index b7550274c7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_unicode_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder provides operations to call the unicode method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/unicode", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action unicode -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action unicode -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUnicodeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_post_request_body.go deleted file mode 100644 index f1a8dfb414..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_request_builder.go deleted file mode 100644 index 76627eac92..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_upper_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder provides operations to call the upper method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/upper", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action upper -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action upper -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUpperRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_post_request_body.go deleted file mode 100644 index 687f218acc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDecimals gets the decimals property value. The decimals property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("decimals") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["decimals"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDecimals(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["number"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetNumber gets the number property value. The number property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("number") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("decimals", m.GetDecimals()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("number", m.GetNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDecimals sets the decimals property value. The decimals property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("decimals", value) - if err != nil { - panic(err) - } -} -// SetNumber sets the number property value. The number property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBody) SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("number", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDecimals()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDecimals(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_request_builder.go deleted file mode 100644 index f34e0e951f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_usdollar_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder provides operations to call the usdollar method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/usdollar", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action usdollar -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action usdollar -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsUsdollarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_post_request_body.go deleted file mode 100644 index 3c7e895413..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetText(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetText gets the text property value. The text property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("text") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetText sets the text property value. The text property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBody) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("text", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_request_builder.go deleted file mode 100644 index 5fcd312c45..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_value_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder provides operations to call the value method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/value", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action value -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action value -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsValuePostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsValueRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_post_request_body.go deleted file mode 100644 index cd90ae8d77..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_request_builder.go deleted file mode 100644 index f6e4a81064..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder provides operations to call the varA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action varA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action varA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_post_request_body.go deleted file mode 100644 index a9e82653ec..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_request_builder.go deleted file mode 100644 index 44ef684676..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_a_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder provides operations to call the varPA method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/varPA", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action varPA -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action varPA -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPAPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVarPARequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_post_request_body.go deleted file mode 100644 index 5c8017ff8d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_request_builder.go deleted file mode 100644 index d63de78c74..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_p_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder provides operations to call the var_P method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_P", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action var_P -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action var_P -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_PRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_post_request_body.go deleted file mode 100644 index 2fe2b67efa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_request_builder.go deleted file mode 100644 index dfbc441a9c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_var_s_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder provides operations to call the var_S method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/var_S", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action var_S -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action var_S -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVar_SRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_post_request_body.go deleted file mode 100644 index 676431be0f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_post_request_body.go +++ /dev/null @@ -1,335 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetCost gets the cost property value. The cost property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cost") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetEndPeriod gets the endPeriod property value. The endPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFactor gets the factor property value. The factor property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetFactor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("factor") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["cost"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCost(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["endPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["factor"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFactor(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["life"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLife(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["noSwitch"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetNoSwitch(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["salvage"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSalvage(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startPeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartPeriod(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLife gets the life property value. The life property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("life") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetNoSwitch gets the noSwitch property value. The noSwitch property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetNoSwitch()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("noSwitch") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSalvage gets the salvage property value. The salvage property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("salvage") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartPeriod gets the startPeriod property value. The startPeriod property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startPeriod") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("cost", m.GetCost()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("endPeriod", m.GetEndPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("factor", m.GetFactor()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("life", m.GetLife()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("noSwitch", m.GetNoSwitch()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("salvage", m.GetSalvage()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startPeriod", m.GetStartPeriod()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetCost sets the cost property value. The cost property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cost", value) - if err != nil { - panic(err) - } -} -// SetEndPeriod sets the endPeriod property value. The endPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endPeriod", value) - if err != nil { - panic(err) - } -} -// SetFactor sets the factor property value. The factor property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetFactor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("factor", value) - if err != nil { - panic(err) - } -} -// SetLife sets the life property value. The life property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("life", value) - if err != nil { - panic(err) - } -} -// SetNoSwitch sets the noSwitch property value. The noSwitch property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetNoSwitch(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("noSwitch", value) - if err != nil { - panic(err) - } -} -// SetSalvage sets the salvage property value. The salvage property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("salvage", value) - if err != nil { - panic(err) - } -} -// SetStartPeriod sets the startPeriod property value. The startPeriod property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBody) SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startPeriod", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetCost()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetEndPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFactor()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLife()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetNoSwitch()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSalvage()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartPeriod()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetCost(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetEndPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFactor(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLife(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetNoSwitch(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSalvage(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartPeriod(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_request_builder.go deleted file mode 100644 index 24a0a21d43..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vdb_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder provides operations to call the vdb method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vdb", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action vdb -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action vdb -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVdbRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_post_request_body.go deleted file mode 100644 index 0e6484a502..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetColIndexNum gets the colIndexNum property value. The colIndexNum property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetColIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("colIndexNum") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["colIndexNum"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetColIndexNum(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["lookupValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetLookupValue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rangeLookup"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRangeLookup(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["tableArray"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetTableArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetLookupValue gets the lookupValue property value. The lookupValue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("lookupValue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRangeLookup gets the rangeLookup property value. The rangeLookup property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetRangeLookup()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rangeLookup") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTableArray gets the tableArray property value. The tableArray property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) GetTableArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("tableArray") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("colIndexNum", m.GetColIndexNum()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("lookupValue", m.GetLookupValue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rangeLookup", m.GetRangeLookup()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("tableArray", m.GetTableArray()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetColIndexNum sets the colIndexNum property value. The colIndexNum property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetColIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("colIndexNum", value) - if err != nil { - panic(err) - } -} -// SetLookupValue sets the lookupValue property value. The lookupValue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("lookupValue", value) - if err != nil { - panic(err) - } -} -// SetRangeLookup sets the rangeLookup property value. The rangeLookup property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetRangeLookup(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rangeLookup", value) - if err != nil { - panic(err) - } -} -// SetTableArray sets the tableArray property value. The tableArray property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBody) SetTableArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("tableArray", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetColIndexNum()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetLookupValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRangeLookup()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTableArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetColIndexNum(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetLookupValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRangeLookup(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTableArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_request_builder.go deleted file mode 100644 index c8c889cfc5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_vlookup_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder provides operations to call the vlookup method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/vlookup", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action vlookup -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action vlookup -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsVlookupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_post_request_body.go deleted file mode 100644 index e19deecf89..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["returnType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReturnType(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetReturnType gets the returnType property value. The returnType property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) GetReturnType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("returnType") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("returnType", m.GetReturnType()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetReturnType sets the returnType property value. The returnType property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) SetReturnType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("returnType", value) - if err != nil { - panic(err) - } -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetReturnType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetReturnType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_request_builder.go deleted file mode 100644 index 1dc21c4cef..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_week_num_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder provides operations to call the weekNum method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekNum", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action weekNum -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action weekNum -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekNumRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_post_request_body.go deleted file mode 100644 index 2f57ce7db8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["returnType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReturnType(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetReturnType gets the returnType property value. The returnType property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) GetReturnType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("returnType") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("returnType", m.GetReturnType()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetReturnType sets the returnType property value. The returnType property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) SetReturnType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("returnType", value) - if err != nil { - panic(err) - } -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetReturnType()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetReturnType(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_request_builder.go deleted file mode 100644 index caf352fa4f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weekday_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder provides operations to call the weekday method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weekday", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action weekday -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action weekday -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeekdayRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_post_request_body.go deleted file mode 100644 index 2246c8775c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAlpha gets the alpha property value. The alpha property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("alpha") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBeta gets the beta property value. The beta property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("beta") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetCumulative gets the cumulative property value. The cumulative property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("cumulative") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["alpha"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetAlpha(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["beta"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBeta(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["cumulative"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetCumulative(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("alpha", m.GetAlpha()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("beta", m.GetBeta()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("cumulative", m.GetCumulative()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAlpha sets the alpha property value. The alpha property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("alpha", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBeta sets the beta property value. The beta property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("beta", value) - if err != nil { - panic(err) - } -} -// SetCumulative sets the cumulative property value. The cumulative property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("cumulative", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAlpha()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBeta()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetCumulative()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetAlpha(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBeta(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetCumulative(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_request_builder.go deleted file mode 100644 index f5a59bf3cb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_weibull_dist_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder provides operations to call the weibull_Dist method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/weibull_Dist", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action weibull_Dist -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action weibull_Dist -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWeibull_DistRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_post_request_body.go deleted file mode 100644 index 545c481296..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_post_request_body.go +++ /dev/null @@ -1,224 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDays gets the days property value. The days property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetDays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("days") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["days"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["holidays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHolidays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["weekend"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetWeekend(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetHolidays gets the holidays property value. The holidays property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("holidays") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetWeekend gets the weekend property value. The weekend property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) GetWeekend()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("weekend") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("days", m.GetDays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("holidays", m.GetHolidays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("weekend", m.GetWeekend()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDays sets the days property value. The days property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetDays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("days", value) - if err != nil { - panic(err) - } -} -// SetHolidays sets the holidays property value. The holidays property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("holidays", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -// SetWeekend sets the weekend property value. The weekend property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBody) SetWeekend(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("weekend", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetWeekend()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetWeekend(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_request_builder.go deleted file mode 100644 index 9df8552c30..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_intl_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder provides operations to call the workDay_Intl method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay_Intl", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action workDay_Intl -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action workDay_Intl -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDay_IntlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_post_request_body.go deleted file mode 100644 index a6244f42c4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDays gets the days property value. The days property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetDays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("days") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["days"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["holidays"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetHolidays(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetHolidays gets the holidays property value. The holidays property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("holidays") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("days", m.GetDays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("holidays", m.GetHolidays()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDays sets the days property value. The days property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) SetDays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("days", value) - if err != nil { - panic(err) - } -} -// SetHolidays sets the holidays property value. The holidays property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("holidays", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetHolidays()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetHolidays(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_request_builder.go deleted file mode 100644 index a79b9804cd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_work_day_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder provides operations to call the workDay method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/workDay", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action workDay -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action workDay -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsWorkDayRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_post_request_body.go deleted file mode 100644 index 7800ea384e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDates gets the dates property value. The dates property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetDates()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("dates") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["dates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDates(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["guess"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetGuess(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetGuess gets the guess property value. The guess property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("guess") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("dates", m.GetDates()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("guess", m.GetGuess()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDates sets the dates property value. The dates property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) SetDates(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("dates", value) - if err != nil { - panic(err) - } -} -// SetGuess sets the guess property value. The guess property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("guess", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDates()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetGuess()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDates(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetGuess(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_request_builder.go deleted file mode 100644 index b0ef940b3a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xirr_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder provides operations to call the xirr method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xirr", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action xirr -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action xirr -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXirrRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_post_request_body.go deleted file mode 100644 index 9af297d24c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetDates gets the dates property value. The dates property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetDates()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("dates") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["dates"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetDates(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("dates", m.GetDates()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetDates sets the dates property value. The dates property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) SetDates(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("dates", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetDates()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetDates(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_request_builder.go deleted file mode 100644 index 71b35ee80d..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xnpv_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder provides operations to call the xnpv method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xnpv", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action xnpv -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action xnpv -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXnpvRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_post_request_body.go deleted file mode 100644 index d20dc8582f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_request_builder.go deleted file mode 100644 index 4c36cd931f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_xor_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder provides operations to call the xor method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/xor", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action xor -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action xor -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsXorRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_post_request_body.go deleted file mode 100644 index 48889b39e3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetEndDate gets the endDate property value. The endDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("endDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["endDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetEndDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["startDate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetStartDate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetStartDate gets the startDate property value. The startDate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("startDate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("endDate", m.GetEndDate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("startDate", m.GetStartDate()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetEndDate sets the endDate property value. The endDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("endDate", value) - if err != nil { - panic(err) - } -} -// SetStartDate sets the startDate property value. The startDate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBody) SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("startDate", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetEndDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetStartDate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetEndDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetStartDate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_request_builder.go deleted file mode 100644 index 4e12039330..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_frac_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder provides operations to call the yearFrac method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yearFrac", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action yearFrac -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action yearFrac -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearFracRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_post_request_body.go deleted file mode 100644 index 9ed4038e67..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["serialNumber"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSerialNumber(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSerialNumber gets the serialNumber property value. The serialNumber property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("serialNumber") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("serialNumber", m.GetSerialNumber()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSerialNumber sets the serialNumber property value. The serialNumber property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBody) SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("serialNumber", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSerialNumber()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSerialNumber(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_request_builder.go deleted file mode 100644 index 3ada1a75c5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_year_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder provides operations to call the year method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/year", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action year -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action year -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_post_request_body.go deleted file mode 100644 index 29db71b1b5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_post_request_body.go +++ /dev/null @@ -1,261 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_request_builder.go deleted file mode 100644 index c227ae7c23..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_disc_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder provides operations to call the yieldDisc method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldDisc", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action yieldDisc -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action yieldDisc -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldDiscRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_post_request_body.go deleted file mode 100644 index a87f1c8b4a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_post_request_body.go +++ /dev/null @@ -1,298 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["issue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetIssue(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIssue gets the issue property value. The issue property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("issue") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("issue", m.GetIssue()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetIssue sets the issue property value. The issue property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("issue", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetIssue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetIssue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_request_builder.go deleted file mode 100644 index f65cc616fe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_mat_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder provides operations to call the yieldMat method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yieldMat", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action yieldMat -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action yieldMat -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldMatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_post_request_body.go deleted file mode 100644 index d5f510a699..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_post_request_body.go +++ /dev/null @@ -1,335 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetBasis gets the basis property value. The basis property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("basis") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["basis"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetBasis(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["frequency"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetFrequency(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["maturity"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetMaturity(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["pr"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetPr(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["rate"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRate(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["redemption"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetRedemption(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["settlement"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSettlement(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetFrequency gets the frequency property value. The frequency property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("frequency") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetMaturity gets the maturity property value. The maturity property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("maturity") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetPr gets the pr property value. The pr property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("pr") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRate gets the rate property value. The rate property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("rate") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetRedemption gets the redemption property value. The redemption property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("redemption") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetSettlement gets the settlement property value. The settlement property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("settlement") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("basis", m.GetBasis()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("frequency", m.GetFrequency()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("maturity", m.GetMaturity()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("pr", m.GetPr()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("rate", m.GetRate()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("redemption", m.GetRedemption()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("settlement", m.GetSettlement()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetBasis sets the basis property value. The basis property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("basis", value) - if err != nil { - panic(err) - } -} -// SetFrequency sets the frequency property value. The frequency property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("frequency", value) - if err != nil { - panic(err) - } -} -// SetMaturity sets the maturity property value. The maturity property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("maturity", value) - if err != nil { - panic(err) - } -} -// SetPr sets the pr property value. The pr property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("pr", value) - if err != nil { - panic(err) - } -} -// SetRate sets the rate property value. The rate property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("rate", value) - if err != nil { - panic(err) - } -} -// SetRedemption sets the redemption property value. The redemption property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("redemption", value) - if err != nil { - panic(err) - } -} -// SetSettlement sets the settlement property value. The settlement property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBody) SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("settlement", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetBasis()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetFrequency()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetMaturity()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetPr()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRate()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetRedemption()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetSettlement()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetBasis(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetFrequency(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetMaturity(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetPr(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRate(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetRedemption(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetSettlement(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_request_builder.go deleted file mode 100644 index afb1e20b05..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_yield_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder provides operations to call the yield method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/yield", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action yield -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action yield -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsYieldRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_post_request_body.go deleted file mode 100644 index 3744282eb9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetArray gets the array property value. The array property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("array") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["array"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetArray(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["sigma"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSigma(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["x"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetX(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetSigma gets the sigma property value. The sigma property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetSigma()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sigma") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetX gets the x property value. The x property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("x") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteObjectValue("array", m.GetArray()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sigma", m.GetSigma()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("x", m.GetX()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetArray sets the array property value. The array property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("array", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSigma sets the sigma property value. The sigma property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) SetSigma(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sigma", value) - if err != nil { - panic(err) - } -} -// SetX sets the x property value. The x property -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBody) SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("x", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetArray()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSigma()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetX()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetArray(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSigma(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetX(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_request_builder.go deleted file mode 100644 index bd2dc1ba46..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_functions_z_test_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder provides operations to call the z_Test method. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/functions/z_Test", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action z_Test -// returns a WorkbookFunctionResultable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFunctionResultFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookFunctionResultable), nil -} -// ToPostRequestInformation invoke action z_Test -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsZ_TestRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_post_request_body.go deleted file mode 100644 index 394dcaa7a7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetComment gets the comment property value. The comment property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetComment()(*string) { - val, err := m.GetBackingStore().Get("comment") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetComment(val) - } - return nil - } - res["formula"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFormula(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - return res -} -// GetFormula gets the formula property value. The formula property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetFormula()(*string) { - val, err := m.GetBackingStore().Get("formula") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("comment", m.GetComment()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("formula", m.GetFormula()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetComment sets the comment property value. The comment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) SetComment(value *string)() { - err := m.GetBackingStore().Set("comment", value) - if err != nil { - panic(err) - } -} -// SetFormula sets the formula property value. The formula property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) SetFormula(value *string)() { - err := m.GetBackingStore().Set("formula", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetComment()(*string) - GetFormula()(*string) - GetName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetComment(value *string)() - SetFormula(value *string)() - SetName(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_request_builder.go deleted file mode 100644 index e85eccdca4..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_formula_local_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder provides operations to call the addFormulaLocal method. -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/addFormulaLocal", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a WorkbookNamedItemable 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/nameditem-addformulalocal?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToPostRequestInformation adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_add_post_request_body.go deleted file mode 100644 index 2d4677ab83..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetComment gets the comment property value. The comment property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetComment()(*string) { - val, err := m.GetBackingStore().Get("comment") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetComment(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["reference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReference(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetReference gets the reference property value. The reference property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reference") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("comment", m.GetComment()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("reference", m.GetReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetComment sets the comment property value. The comment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) SetComment(value *string)() { - err := m.GetBackingStore().Set("comment", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetReference sets the reference property value. The reference property -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBody) SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetComment()(*string) - GetName()(*string) - GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetComment(value *string)() - SetName(value *string)() - SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_add_request_builder.go deleted file mode 100644 index ee48941e2b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a WorkbookNamedItemable 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/nameditem-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToPostRequestInformation adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookNamesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_count_request_builder.go deleted file mode 100644 index 70fddc0353..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_item_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_item_range_request_builder.go deleted file mode 100644 index b388f7f01c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_item_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get retrieve the properties and relationships of range object. -// returns a WorkbookRangeable 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/range-get?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation retrieve the properties and relationships of range object. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_item_worksheet_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_item_worksheet_request_builder.go deleted file mode 100644 index 56f5f91763..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_item_worksheet_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookNamedItem entity. -type FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_names_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_names_request_builder.go deleted file mode 100644 index 9094485e2c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_names_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder provides operations to manage the names property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetQueryParameters represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AddFormulaLocal provides operations to call the addFormulaLocal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) AddFormulaLocal()(*FileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesAddFormulaLocalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookNamedItemId provides operations to manage the names property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) ByWorkbookNamedItemId(workbookNamedItemId string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookNamedItemId != "" { - urlTplParams["workbookNamedItem%2Did"] = workbookNamedItemId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesWorkbookNamedItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -// returns a WorkbookNamedItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemCollectionResponseable), nil -} -// Post create new navigation property to names for storage -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToGetRequestInformation represents a collection of workbooks scoped named items (named ranges and constants). Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to names for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_operations_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_operations_request_builder.go deleted file mode 100644 index 5c38fffefd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_operations_request_builder.go +++ /dev/null @@ -1,147 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder provides operations to manage the operations property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetQueryParameters the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookOperationId provides operations to manage the operations property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) ByWorkbookOperationId(workbookOperationId string)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookOperationId != "" { - urlTplParams["workbookOperation%2Did"] = workbookOperationId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsWorkbookOperationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -// returns a WorkbookOperationCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookOperationCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationCollectionResponseable), nil -} -// Post create new navigation property to operations for storage -// returns a WorkbookOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable), nil -} -// ToGetRequestInformation the status of workbook operations. Getting an operation collection is not supported, but you can get the status of a long-running operation if the Location header is returned in the response. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to operations for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookOperationable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_refresh_session_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_refresh_session_request_builder.go deleted file mode 100644 index cd0365967a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_refresh_session_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder provides operations to call the refreshSession method. -type FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/refreshSession", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post use this API to refresh an existing workbook session. -// 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/workbook-refreshsession?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation use this API to refresh an existing workbook session. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_request_builder.go deleted file mode 100644 index ec1e9baba8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_request_builder.go +++ /dev/null @@ -1,217 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder provides operations to manage the workbook property of the microsoft.graph.driveItem entity. -type FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetQueryParameters for files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. -type FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Application provides operations to manage the application property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Application()(*FileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookApplicationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CloseSession provides operations to call the closeSession method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) CloseSession()(*FileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCloseSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Comments provides operations to manage the comments property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Comments()(*FileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCommentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilderInternal(urlParams, requestAdapter) -} -// CreateSession provides operations to call the createSession method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) CreateSession()(*FileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookCreateSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property workbook for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Functions provides operations to manage the functions property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Functions()(*FileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookFunctionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get for files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. -// returns a Workbookable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable), nil -} -// Names provides operations to manage the names property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Names()(*FileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookNamesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Operations provides operations to manage the operations property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Operations()(*FileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property workbook in storage -// returns a Workbookable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable), nil -} -// RefreshSession provides operations to call the refreshSession method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) RefreshSession()(*FileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookRefreshSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SessionInfoResourceWithKey provides operations to call the sessionInfoResource method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) SessionInfoResourceWithKey(key *string)(*FileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookSessionInfoResourceWithKeyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, key) -} -// TableRowOperationResultWithKey provides operations to call the tableRowOperationResult method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) TableRowOperationResultWithKey(key *string)(*FileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTableRowOperationResultWithKeyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, key) -} -// Tables provides operations to manage the tables property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Tables()(*FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property workbook for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation for files that are Excel spreadsheets, access to the workbook API to work with the spreadsheet's contents. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property workbook in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Workbookable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheets provides operations to manage the worksheets property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookRequestBuilder) Worksheets()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_post_request_body.go deleted file mode 100644 index fe2b9d1baa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAddress gets the address property value. The address property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) GetAddress()(*string) { - val, err := m.GetBackingStore().Get("address") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAddress(val) - } - return nil - } - res["hasHeaders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasHeaders(val) - } - return nil - } - return res -} -// GetHasHeaders gets the hasHeaders property value. The hasHeaders property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) GetHasHeaders()(*bool) { - val, err := m.GetBackingStore().Get("hasHeaders") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("address", m.GetAddress()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("hasHeaders", m.GetHasHeaders()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAddress sets the address property value. The address property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) SetAddress(value *string)() { - err := m.GetBackingStore().Set("address", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetHasHeaders sets the hasHeaders property value. The hasHeaders property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBody) SetHasHeaders(value *bool)() { - err := m.GetBackingStore().Set("hasHeaders", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddress()(*string) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHasHeaders()(*bool) - SetAddress(value *string)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHasHeaders(value *bool)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_request_builder.go deleted file mode 100644 index bb50bd9dbe..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post use this API to create a new Table. -// returns a WorkbookTableable 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/workbook-post-tables?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// ToPostRequestInformation use this API to create a new Table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_get_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_get_response.go deleted file mode 100644 index 6f83c31f4f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_request_builder.go deleted file mode 100644 index 423a9839e8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_request_builder.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_response.go deleted file mode 100644 index 650c7997ed..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_count_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookTablesCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_at_with_index_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_at_with_index_request_builder.go deleted file mode 100644 index 45d6397735..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_at_with_index_request_builder.go +++ /dev/null @@ -1,128 +0,0 @@ -package storage - -import ( - "context" - i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder provides operations to call the itemAt method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ClearFilters provides operations to call the clearFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) ClearFilters()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexClearFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) Columns()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/itemAt(index={index})", pathParameters), - } - if index != nil { - m.BaseRequestBuilder.PathParameters["index"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*index), 10) - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// ConvertToRange provides operations to call the convertToRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) ConvertToRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexConvertToRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get invoke function itemAt -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ReapplyFilters provides operations to call the reapplyFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) ReapplyFilters()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexReapplyFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rows provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) Rows()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sort provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) Sort()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation invoke function itemAt -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_clear_filters_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_clear_filters_request_builder.go deleted file mode 100644 index e5aeba7c21..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_clear_filters_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder provides operations to call the clearFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/clearFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears all the filters currently applied on the table. -// 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/table-clearfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears all the filters currently applied on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_post_request_body.go deleted file mode 100644 index 8e945c5614..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["index"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetIndex(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIndex gets the index property value. The index property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetIndex()(*int32) { - val, err := m.GetBackingStore().Get("index") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("index", m.GetIndex()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIndex sets the index property value. The index property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) SetIndex(value *int32)() { - err := m.GetBackingStore().Set("index", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIndex()(*int32) - GetName()(*string) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIndex(value *int32)() - SetName(value *string)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_request_builder.go deleted file mode 100644 index 9c550fd7fd..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new column to the table. -// returns a WorkbookTableColumnable 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/tablecolumncollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToPostRequestInformation adds a new column to the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_get_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_get_response.go deleted file mode 100644 index 5f873a1865..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_request_builder.go deleted file mode 100644 index 3d48581206..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_request_builder.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_response.go deleted file mode 100644 index 14d9a2fb2c..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_count_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_request_builder.go deleted file mode 100644 index 4cab1eae31..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_columns_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableColumnId provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) ByWorkbookTableColumnId(workbookTableColumnId string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableColumnId != "" { - urlTplParams["workbookTableColumn%2Did"] = workbookTableColumnId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the columns in the table. Read-only. -// returns a WorkbookTableColumnCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to columns for storage -// returns a WorkbookTableColumnable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableColumnFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable), nil -} -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableColumnable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_convert_to_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_convert_to_range_request_builder.go deleted file mode 100644 index bd019aad1e..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_convert_to_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder provides operations to call the convertToRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/convertToRange", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post converts the table into a normal range of cells. All data is preserved. -// returns a WorkbookRangeable 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/table-converttorange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToPostRequestInformation converts the table into a normal range of cells. All data is preserved. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_data_body_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_data_body_range_request_builder.go deleted file mode 100644 index 5edafbe525..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_data_body_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder provides operations to call the dataBodyRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with the data body of the table. -// returns a WorkbookRangeable 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/table-databodyrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with the data body of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_header_row_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_header_row_range_request_builder.go deleted file mode 100644 index b0fc76e344..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_header_row_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder provides operations to call the headerRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with header row of the table. -// returns a WorkbookRangeable 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/table-headerrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with header row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_range_request_builder.go deleted file mode 100644 index 9a07dedf54..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the range object associated with the entire table. -// returns a WorkbookRangeable 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/table-range?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation get the range object associated with the entire table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_reapply_filters_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_reapply_filters_request_builder.go deleted file mode 100644 index b9ccbcaafc..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_reapply_filters_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder provides operations to call the reapplyFilters method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/reapplyFilters", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies all the filters currently on the table. -// 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/table-reapplyfilters?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies all the filters currently on the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_post_request_body.go deleted file mode 100644 index 6b00e3900f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["index"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetIndex(val) - } - return nil - } - res["values"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetValues(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetIndex gets the index property value. The index property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) GetIndex()(*int32) { - val, err := m.GetBackingStore().Get("index") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// GetValues gets the values property value. The values property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("values") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("index", m.GetIndex()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("values", m.GetValues()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetIndex sets the index property value. The index property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) SetIndex(value *int32)() { - err := m.GetBackingStore().Set("index", value) - if err != nil { - panic(err) - } -} -// SetValues sets the values property value. The values property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBody) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("values", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetIndex()(*int32) - GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetIndex(value *int32)() - SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_request_builder.go deleted file mode 100644 index 768085298b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. -// returns a WorkbookTableRowable 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/tablerowcollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToPostRequestInformation adds rows to the end of the table. Note that the API can accept multiple rows data using this API. Adding one row at a time could lead to performance degradation. The recommended approach would be to batch the rows together in a single call rather than doing single row insertion. For best results, collect the rows to be inserted on the application side and perform single rows add operation. Experiment with the number of rows to determine the ideal number of rows to use in single API call. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_get_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_get_response.go deleted file mode 100644 index 1817d02468..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_request_builder.go deleted file mode 100644 index f3b490dc9f..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_request_builder.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_response.go deleted file mode 100644 index d0bb2ef6a0..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_count_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_item_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_item_range_request_builder.go deleted file mode 100644 index 6a30e95cba..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_item_range_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_request_builder.go deleted file mode 100644 index 2391e57f62..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_rows_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableRowId provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) ByWorkbookTableRowId(workbookTableRowId string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableRowId != "" { - urlTplParams["workbookTableRow%2Did"] = workbookTableRowId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of all the rows in the table. Read-only. -// returns a WorkbookTableRowCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to rows for storage -// returns a WorkbookTableRowable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableRowFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable), nil -} -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to rows for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableRowable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_post_request_body.go deleted file mode 100644 index 13106c8708..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_post_request_body.go +++ /dev/null @@ -1,200 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fields"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookSortFieldFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - } - } - m.SetFields(res) - } - return nil - } - res["matchCase"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetMatchCase(val) - } - return nil - } - res["method"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMethod(val) - } - return nil - } - return res -} -// GetFields gets the fields property value. The fields property -// returns a []WorkbookSortFieldable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetFields()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) { - val, err := m.GetBackingStore().Get("fields") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - } - return nil -} -// GetMatchCase gets the matchCase property value. The matchCase property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetMatchCase()(*bool) { - val, err := m.GetBackingStore().Get("matchCase") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetMethod gets the method property value. The method property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) GetMethod()(*string) { - val, err := m.GetBackingStore().Get("method") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetFields() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetFields())) - for i, v := range m.GetFields() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("fields", cast) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("matchCase", m.GetMatchCase()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("method", m.GetMethod()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetFields sets the fields property value. The fields property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) SetFields(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable)() { - err := m.GetBackingStore().Set("fields", value) - if err != nil { - panic(err) - } -} -// SetMatchCase sets the matchCase property value. The matchCase property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) SetMatchCase(value *bool)() { - err := m.GetBackingStore().Set("matchCase", value) - if err != nil { - panic(err) - } -} -// SetMethod sets the method property value. The method property -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBody) SetMethod(value *string)() { - err := m.GetBackingStore().Set("method", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetFields()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable) - GetMatchCase()(*bool) - GetMethod()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetFields(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookSortFieldable)() - SetMatchCase(value *bool)() - SetMethod(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_request_builder.go deleted file mode 100644 index c4080d8013..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_apply_request_builder.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder provides operations to call the apply method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/apply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post perform a sort operation. -// 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/tablesort-apply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation perform a sort operation. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_clear_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_clear_request_builder.go deleted file mode 100644 index ba1c2d50f1..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_clear_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder provides operations to call the clear method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/clear", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderInternal(urlParams, requestAdapter) -} -// Post clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. -// 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/tablesort-clear?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation clears the sorting that is currently on the table. While this doesn't modify the table's ordering, it clears the state of the header buttons. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_reapply_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_reapply_request_builder.go deleted file mode 100644 index cdb7f426e2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_reapply_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder provides operations to call the reapply method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort/reapply", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reapplies the current sorting parameters to the table. -// 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/tablesort-reapply?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reapplies the current sorting parameters to the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_request_builder.go deleted file mode 100644 index e28b59eee7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_sort_request_builder.go +++ /dev/null @@ -1,172 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Apply provides operations to call the apply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Apply()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortApplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Clear provides operations to call the clear method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Clear()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/sort{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property sort for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents the sorting for the table. Read-only. -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Patch update the navigation property sort in storage -// returns a WorkbookTableSortable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableSortFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable), nil -} -// Reapply provides operations to call the reapply method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) Reapply()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortReapplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property sort for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents the sorting for the table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property sort in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableSortable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_total_row_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_total_row_range_request_builder.go deleted file mode 100644 index cd4e17e439..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_total_row_range_request_builder.go +++ /dev/null @@ -1,72 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder provides operations to call the totalRowRange method. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get gets the range object associated with totals row of the table. -// returns a WorkbookRangeable 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/table-totalrowrange?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation gets the range object associated with totals row of the table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_worksheet_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_worksheet_request_builder.go deleted file mode 100644 index 1101ef54de..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_item_worksheet_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetQueryParameters the worksheet containing the current table. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/worksheet{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the worksheet containing the current table. Read-only. -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation the worksheet containing the current table. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_request_builder.go deleted file mode 100644 index 8dc26560bb..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder provides operations to manage the tables property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetQueryParameters represents a collection of tables associated with the workbook. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableId provides operations to manage the tables property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) ByWorkbookTableId(workbookTableId string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableId != "" { - urlTplParams["workbookTable%2Did"] = workbookTableId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of tables associated with the workbook. Read-only. -// returns a WorkbookTableCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to tables for storage -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// ToGetRequestInformation represents a collection of tables associated with the workbook. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to tables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_tables_workbook_table_item_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_tables_workbook_table_item_request_builder.go deleted file mode 100644 index 8fe34c36ec..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_tables_workbook_table_item_request_builder.go +++ /dev/null @@ -1,212 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder provides operations to manage the tables property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetQueryParameters represents a collection of tables associated with the workbook. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ClearFilters provides operations to call the clearFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ClearFilters()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemClearFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Columns()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderInternal(urlParams, requestAdapter) -} -// ConvertToRange provides operations to call the convertToRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ConvertToRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemConvertToRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DataBodyRange provides operations to call the dataBodyRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) DataBodyRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property tables for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get represents a collection of tables associated with the workbook. Read-only. -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// HeaderRowRange provides operations to call the headerRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) HeaderRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property tables in storage -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// RangeEscaped provides operations to call the range method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) RangeEscaped()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ReapplyFilters provides operations to call the reapplyFilters method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ReapplyFilters()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemReapplyFiltersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Rows provides operations to manage the rows property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Rows()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemRowsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Sort provides operations to manage the sort property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Sort()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property tables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation represents a collection of tables associated with the workbook. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property tables in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// TotalRowRange provides operations to call the totalRowRange method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) TotalRowRange()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} -// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookTable entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookTablesWorkbookTableItemRequestBuilder) Worksheet()(*FileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookTablesItemWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_post_request_body.go deleted file mode 100644 index 6257d10c74..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetName()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetName(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_request_builder.go deleted file mode 100644 index 85dfc838e6..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. -// returns a WorkbookWorksheetable 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/worksheetcollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToPostRequestInformation add a new worksheet to the workbook. The worksheet is added at the end of existing worksheets. If you want to activate the newly added worksheet, call .activate() on it. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_count_request_builder.go deleted file mode 100644 index ce267bbe09..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_post_request_body.go deleted file mode 100644 index ad5f9214d5..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["seriesBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetSeriesBy(val) - } - return nil - } - res["sourceData"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetSourceData(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } - return res -} -// GetSeriesBy gets the seriesBy property value. The seriesBy property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetSeriesBy()(*string) { - val, err := m.GetBackingStore().Get("seriesBy") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSourceData gets the sourceData property value. The sourceData property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("sourceData") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) GetTypeEscaped()(*string) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("seriesBy", m.GetSeriesBy()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("sourceData", m.GetSourceData()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetSeriesBy sets the seriesBy property value. The seriesBy property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) SetSeriesBy(value *string)() { - err := m.GetBackingStore().Set("seriesBy", value) - if err != nil { - panic(err) - } -} -// SetSourceData sets the sourceData property value. The sourceData property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("sourceData", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBody) SetTypeEscaped(value *string)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetSeriesBy()(*string) - GetSourceData()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - GetTypeEscaped()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetSeriesBy(value *string)() - SetSourceData(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() - SetTypeEscaped(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_request_builder.go deleted file mode 100644 index 36c35fc7ed..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post creates a new chart. -// returns a WorkbookChartable 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/chartcollection-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// ToPostRequestInformation creates a new chart. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_get_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_get_response.go deleted file mode 100644 index 2919669ad7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_request_builder.go deleted file mode 100644 index 34f0aa34a3..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_request_builder.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_response.go deleted file mode 100644 index 4b82817738..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_count_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_item_image_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_item_image_response.go deleted file mode 100644 index 5901bfe688..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_item_image_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemImageGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_request_builder.go deleted file mode 100644 index d9fa2b348b..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_charts_request_builder.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters returns collection of charts that are part of the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookChartId provides operations to manage the charts property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ByWorkbookChartId(workbookChartId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookChartId != "" { - urlTplParams["workbookChart%2Did"] = workbookChartId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/charts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns collection of charts that are part of the worksheet. Read-only. -// returns a WorkbookChartCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// ItemWithName provides operations to call the item method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ItemWithName(name *string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsItemWithNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, name) -} -// Post create new navigation property to charts for storage -// returns a WorkbookChartable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookChartFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable), nil -} -// ToGetRequestInformation returns collection of charts that are part of the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to charts for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookChartable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemChartsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_post_request_body.go deleted file mode 100644 index 6243af8fd2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_post_request_body.go +++ /dev/null @@ -1,187 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetComment gets the comment property value. The comment property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetComment()(*string) { - val, err := m.GetBackingStore().Get("comment") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["comment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetComment(val) - } - return nil - } - res["name"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetName(val) - } - return nil - } - res["reference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.CreateUntypedNodeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - m.SetReference(val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)) - } - return nil - } - return res -} -// GetName gets the name property value. The name property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetName()(*string) { - val, err := m.GetBackingStore().Get("name") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetReference gets the reference property value. The reference property -// returns a UntypedNodeable when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { - val, err := m.GetBackingStore().Get("reference") - if err != nil { - panic(err) - } - if val != nil { - return val.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("comment", m.GetComment()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("name", m.GetName()) - if err != nil { - return err - } - } - { - err := writer.WriteObjectValue("reference", m.GetReference()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetComment sets the comment property value. The comment property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) SetComment(value *string)() { - err := m.GetBackingStore().Set("comment", value) - if err != nil { - panic(err) - } -} -// SetName sets the name property value. The name property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) SetName(value *string)() { - err := m.GetBackingStore().Set("name", value) - if err != nil { - panic(err) - } -} -// SetReference sets the reference property value. The reference property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBody) SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { - err := m.GetBackingStore().Set("reference", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetComment()(*string) - GetName()(*string) - GetReference()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetComment(value *string)() - SetName(value *string)() - SetReference(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_request_builder.go deleted file mode 100644 index e06497bdb8..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a WorkbookNamedItemable 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/nameditem-add?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToPostRequestInformation adds a new name to the collection of the given scope using the user's locale for the formula. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_count_request_builder.go deleted file mode 100644 index 8673163fef..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_request_builder.go deleted file mode 100644 index a9285cf2e9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_names_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters returns collection of names that are associated with the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AddFormulaLocal provides operations to call the addFormulaLocal method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) AddFormulaLocal()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesAddFormulaLocalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookNamedItemId provides operations to manage the names property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) ByWorkbookNamedItemId(workbookNamedItemId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookNamedItemId != "" { - urlTplParams["workbookNamedItem%2Did"] = workbookNamedItemId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get returns collection of names that are associated with the worksheet. Read-only. -// returns a WorkbookNamedItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemCollectionResponseable), nil -} -// Post create new navigation property to names for storage -// returns a WorkbookNamedItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookNamedItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable), nil -} -// ToGetRequestInformation returns collection of names that are associated with the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to names for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookNamedItemable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemNamesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_pivot_tables_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_pivot_tables_request_builder.go deleted file mode 100644 index 6dde8ea64a..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_pivot_tables_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters collection of PivotTables that are part of the worksheet. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByWorkbookPivotTableId provides operations to manage the pivotTables property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) ByWorkbookPivotTableId(workbookPivotTableId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookPivotTableId != "" { - urlTplParams["workbookPivotTable%2Did"] = workbookPivotTableId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/pivotTables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of PivotTables that are part of the worksheet. -// returns a WorkbookPivotTableCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookPivotTableCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableCollectionResponseable), nil -} -// Post create new navigation property to pivotTables for storage -// returns a WorkbookPivotTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookPivotTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable), nil -} -// RefreshAll provides operations to call the refreshAll method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) RefreshAll()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation collection of PivotTables that are part of the worksheet. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to pivotTables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookPivotTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_protection_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_protection_request_builder.go deleted file mode 100644 index 6edd87c039..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_protection_request_builder.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder provides operations to manage the protection property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters returns sheet protection object for a worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/protection{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property protection for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get returns sheet protection object for a worksheet. Read-only. -// returns a WorkbookWorksheetProtectionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetProtectionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable), nil -} -// Patch update the navigation property protection in storage -// returns a WorkbookWorksheetProtectionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetProtectionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable), nil -} -// Protect provides operations to call the protect method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Protect()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionProtectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property protection for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation returns sheet protection object for a worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property protection in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetProtectionable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Unprotect provides operations to call the unprotect method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Unprotect()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionUnprotectRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemProtectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_range_request_builder.go deleted file mode 100644 index f26805ab68..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_range_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder provides operations to call the range method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function range -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function range -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_post_request_body.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_post_request_body.go deleted file mode 100644 index 42bb3b6b79..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_post_request_body.go +++ /dev/null @@ -1,150 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetAddress gets the address property value. The address property -// returns a *string when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) GetAddress()(*string) { - val, err := m.GetBackingStore().Get("address") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["address"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetAddress(val) - } - return nil - } - res["hasHeaders"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetHasHeaders(val) - } - return nil - } - return res -} -// GetHasHeaders gets the hasHeaders property value. The hasHeaders property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) GetHasHeaders()(*bool) { - val, err := m.GetBackingStore().Get("hasHeaders") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("address", m.GetAddress()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("hasHeaders", m.GetHasHeaders()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetAddress sets the address property value. The address property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) SetAddress(value *string)() { - err := m.GetBackingStore().Set("address", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetHasHeaders sets the hasHeaders property value. The hasHeaders property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBody) SetHasHeaders(value *bool)() { - err := m.GetBackingStore().Set("hasHeaders", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetAddress()(*string) - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetHasHeaders()(*bool) - SetAddress(value *string)() - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetHasHeaders(value *bool)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_request_builder.go deleted file mode 100644 index 415913caaa..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_add_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder provides operations to call the add method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/add", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(urlParams, requestAdapter) -} -// Post use this API to create a new Table. -// returns a WorkbookTableable 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/workbook-post-tables?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// ToPostRequestInformation use this API to create a new Table. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_get_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_get_response.go deleted file mode 100644 index bd2d3a68e7..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *int32 when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) GetValue()(*int32) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*int32) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteInt32Value("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse) SetValue(value *int32)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*int32) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *int32)() -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_request_builder.go deleted file mode 100644 index b18794f074..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_request_builder.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder provides operations to call the count method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/count()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function count -// Deprecated: This method is obsolete. Use GetAsCountGetResponse instead. -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseable), nil -} -// GetAsCountGetResponse invoke function count -// returns a FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) GetAsCountGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable), nil -} -// ToGetRequestInformation invoke function count -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_response.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_response.go deleted file mode 100644 index 2ab1429fe9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_count_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse struct { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse{ - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse: *NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable instead. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountResponseable interface { - FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_request_builder.go deleted file mode 100644 index b84d7794a2..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_tables_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters collection of tables that are part of the worksheet. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookTableId provides operations to manage the tables property of the microsoft.graph.workbookWorksheet entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) ByWorkbookTableId(workbookTableId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookTableId != "" { - urlTplParams["workbookTable%2Did"] = workbookTableId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to call the count method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of tables that are part of the worksheet. Read-only. -// returns a WorkbookTableCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableCollectionResponseable), nil -} -// ItemAtWithIndex provides operations to call the itemAt method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) ItemAtWithIndex(index *int32)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, index) -} -// Post create new navigation property to tables for storage -// returns a WorkbookTableable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookTableFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable), nil -} -// ToGetRequestInformation collection of tables that are part of the worksheet. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to tables for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookTableable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemTablesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_used_range_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_used_range_request_builder.go deleted file mode 100644 index e634426f14..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_item_used_range_request_builder.go +++ /dev/null @@ -1,69 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder provides operations to call the usedRange method. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function usedRange -// returns a WorkbookRangeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookRangeable), nil -} -// ToGetRequestInformation invoke function usedRange -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_request_builder.go b/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_request_builder.go deleted file mode 100644 index 18e10f79a9..0000000000 --- a/storage/file_storage_containers_item_drive_items_item_workbook_worksheets_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder provides operations to manage the worksheets property of the microsoft.graph.workbook entity. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetQueryParameters represents a collection of worksheets associated with the workbook. Read-only. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Add provides operations to call the add method. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) Add()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByWorkbookWorksheetId provides operations to manage the worksheets property of the microsoft.graph.workbook entity. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) ByWorkbookWorksheetId(workbookWorksheetId string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if workbookWorksheetId != "" { - urlTplParams["workbookWorksheet%2Did"] = workbookWorksheetId - } - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsWorkbookWorksheetItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items/{driveItem%2Did}/workbook/worksheets{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get represents a collection of worksheets associated with the workbook. Read-only. -// returns a WorkbookWorksheetCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetCollectionResponseable), nil -} -// Post create new navigation property to worksheets for storage -// returns a WorkbookWorksheetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable), nil -} -// ToGetRequestInformation represents a collection of worksheets associated with the workbook. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to worksheets for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.WorkbookWorksheetable, requestConfiguration *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsItemWorkbookWorksheetsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_items_request_builder.go b/storage/file_storage_containers_item_drive_items_request_builder.go deleted file mode 100644 index 6d12383b91..0000000000 --- a/storage/file_storage_containers_item_drive_items_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveItemsRequestBuilder provides operations to manage the items property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveItemsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveItemsRequestBuilderGetQueryParameters all items contained in the drive. Read-only. Nullable. -type FileStorageContainersItemDriveItemsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveItemsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveItemsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByDriveItemId provides operations to manage the items property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsRequestBuilder) ByDriveItemId(driveItemId string)(*FileStorageContainersItemDriveItemsDriveItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemId != "" { - urlTplParams["driveItem%2Did"] = driveItemId - } - return NewFileStorageContainersItemDriveItemsDriveItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveItemsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveItemsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsRequestBuilder) { - m := &FileStorageContainersItemDriveItemsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveItemsRequestBuilder instantiates a new FileStorageContainersItemDriveItemsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveItemsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveItemsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveItemsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsRequestBuilder) Count()(*FileStorageContainersItemDriveItemsCountRequestBuilder) { - return NewFileStorageContainersItemDriveItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get all items contained in the drive. Read-only. Nullable. -// returns a DriveItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable), nil -} -// Post create new navigation property to items for storage -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveItemsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation all items contained in the drive. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to items for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, requestConfiguration *FileStorageContainersItemDriveItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveItemsRequestBuilder when successful -func (m *FileStorageContainersItemDriveItemsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveItemsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_last_modified_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_last_modified_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index c4e0bea8b3..0000000000 --- a/storage/file_storage_containers_item_drive_last_modified_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\lastModifiedByUser\mailboxSettings -type FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_drive_last_modified_by_user_request_builder.go deleted file mode 100644 index 704112fe1f..0000000000 --- a/storage/file_storage_containers_item_drive_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveLastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveLastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveLastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_last_modified_by_user_service_provisioning_errors_request_builder.go b/storage/file_storage_containers_item_drive_last_modified_by_user_service_provisioning_errors_request_builder.go deleted file mode 100644 index ea6c01e6b3..0000000000 --- a/storage/file_storage_containers_item_drive_last_modified_by_user_service_provisioning_errors_request_builder.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\lastModifiedByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/lastModifiedByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_columns_column_definition_item_request_builder.go b/storage/file_storage_containers_item_drive_list_columns_column_definition_item_request_builder.go deleted file mode 100644 index f40378b5d3..0000000000 --- a/storage/file_storage_containers_item_drive_list_columns_column_definition_item_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder provides operations to manage the columns property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetQueryParameters the collection of field definitions for this list. -type FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property columns for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the collection of field definitions for this list. -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// Patch update the navigation property columns in storage -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// SourceColumn provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. -// returns a *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) SourceColumn()(*FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the collection of field definitions for this list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property columns in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_columns_count_request_builder.go b/storage/file_storage_containers_item_drive_list_columns_count_request_builder.go deleted file mode 100644 index a019bfb01a..0000000000 --- a/storage/file_storage_containers_item_drive_list_columns_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListColumnsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListColumnsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListColumnsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListColumnsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListColumnsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListColumnsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListColumnsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListColumnsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListColumnsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_columns_item_source_column_request_builder.go b/storage/file_storage_containers_item_drive_list_columns_item_source_column_request_builder.go deleted file mode 100644 index b317d15d07..0000000000 --- a/storage/file_storage_containers_item_drive_list_columns_item_source_column_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder provides operations to manage the sourceColumn property of the microsoft.graph.columnDefinition entity. -type FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetQueryParameters the source column for the content type column. -type FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) { - m := &FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns/{columnDefinition%2Did}/sourceColumn{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder instantiates a new FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderInternal(urlParams, requestAdapter) -} -// Get the source column for the content type column. -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the source column for the content type column. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsItemSourceColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_columns_request_builder.go b/storage/file_storage_containers_item_drive_list_columns_request_builder.go deleted file mode 100644 index 8033d40c93..0000000000 --- a/storage/file_storage_containers_item_drive_list_columns_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListColumnsRequestBuilderGetQueryParameters the collection of field definitions for this list. -type FileStorageContainersItemDriveListColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByColumnDefinitionId provides operations to manage the columns property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) ByColumnDefinitionId(columnDefinitionId string)(*FileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if columnDefinitionId != "" { - urlTplParams["columnDefinition%2Did"] = columnDefinitionId - } - return NewFileStorageContainersItemDriveListColumnsColumnDefinitionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveListColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveListColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) Count()(*FileStorageContainersItemDriveListColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of field definitions for this list. -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// Post create new navigation property to columns for storage -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the collection of field definitions for this list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_add_copy_from_content_type_hub_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_add_copy_from_content_type_hub_request_builder.go deleted file mode 100644 index d3e1be1003..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_add_copy_from_content_type_hub_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder provides operations to call the addCopyFromContentTypeHub method. -type FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopyFromContentTypeHub", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(urlParams, requestAdapter) -} -// Post add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. -// returns a ContentTypeable 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/contenttype-addcopyfromcontenttypehub?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToPostRequestInformation add or sync a copy of a published content type from the content type hub to a target site or a list. This method is part of the content type publishing changes to optimize the syncing of published content types to sites and lists, effectively switching from a 'push everywhere' to 'pull as needed' approach. The method allows users to pull content types directly from the content type hub to a site or list. For more information, see contentType: getCompatibleHubContentTypes and the blog post Syntex Product Updates – August 2021. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_add_copy_post_request_body.go b/storage/file_storage_containers_item_drive_list_content_types_add_copy_post_request_body.go deleted file mode 100644 index a88e78a3e3..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_add_copy_post_request_body.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody()(*FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) { - m := &FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListContentTypesAddCopyPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesAddCopyPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetContentType gets the contentType property value. The contentType property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) GetContentType()(*string) { - val, err := m.GetBackingStore().Get("contentType") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["contentType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetContentType(val) - } - return nil - } - return res -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteStringValue("contentType", m.GetContentType()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetContentType sets the contentType property value. The contentType property -func (m *FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBody) SetContentType(value *string)() { - err := m.GetBackingStore().Set("contentType", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetContentType()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetContentType(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_add_copy_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_add_copy_request_builder.go deleted file mode 100644 index 5e924de780..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_add_copy_request_builder.go +++ /dev/null @@ -1,76 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder provides operations to call the addCopy method. -type FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/addCopy", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderInternal(urlParams, requestAdapter) -} -// Post add a copy of a content type from a site to a list. -// returns a ContentTypeable 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/contenttype-addcopy?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToPostRequestInformation add a copy of a content type from a site to a list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveListContentTypesAddCopyPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_content_type_item_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_content_type_item_request_builder.go deleted file mode 100644 index b4a739d7a0..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_content_type_item_request_builder.go +++ /dev/null @@ -1,207 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetQueryParameters the collection of content types present in this list. -type FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// AssociateWithHubSites provides operations to call the associateWithHubSites method. -// returns a *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) AssociateWithHubSites()(*FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Base provides operations to manage the base property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Base()(*FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// BaseTypes provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) BaseTypes()(*FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ColumnLinks provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) ColumnLinks()(*FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ColumnPositions provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) ColumnPositions()(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Columns provides operations to manage the columns property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Columns()(*FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderInternal(urlParams, requestAdapter) -} -// CopyToDefaultContentLocation provides operations to call the copyToDefaultContentLocation method. -// returns a *FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) CopyToDefaultContentLocation()(*FileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemCopyToDefaultContentLocationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property contentTypes for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the collection of content types present in this list. -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// IsPublished provides operations to call the isPublished method. -// returns a *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) IsPublished()(*FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property contentTypes in storage -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// Publish provides operations to call the publish method. -// returns a *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Publish()(*FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property contentTypes for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the collection of content types present in this list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property contentTypes in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Unpublish provides operations to call the unpublish method. -// returns a *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) Unpublish()(*FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_count_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_count_request_builder.go deleted file mode 100644 index 612f9e1766..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListContentTypesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesCountRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesCountRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_get_response.go b/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_get_response.go deleted file mode 100644 index eec5b21f5e..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse instantiates a new FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse()(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse) { - m := &FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ContentTypeable when successful -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable)() -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_response.go b/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_response.go deleted file mode 100644 index 0a13bfa3c6..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_get_compatible_hub_content_types_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable instead. -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse struct { - FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse -} -// NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse instantiates a new FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse()(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse) { - m := &FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse{ - FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse: *NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable instead. -type FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesResponseable interface { - FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_associate_with_hub_sites_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_associate_with_hub_sites_request_builder.go deleted file mode 100644 index 5c2ce837b9..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_associate_with_hub_sites_request_builder.go +++ /dev/null @@ -1,71 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder provides operations to call the associateWithHubSites method. -type FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/associateWithHubSites", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderInternal(urlParams, requestAdapter) -} -// Post associate a published content type present in a content type hub with a list of hub sites. -// 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/contenttype-associatewithhubsites?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation associate a published content type present in a content type hub with a list of hub sites. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemAssociateWithHubSitesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_base_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_base_request_builder.go deleted file mode 100644 index 4acc79c060..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_base_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder provides operations to manage the base property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetQueryParameters parent contentType from which this content type is derived. -type FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/base{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderInternal(urlParams, requestAdapter) -} -// Get parent contentType from which this content type is derived. -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToGetRequestInformation parent contentType from which this content type is derived. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_base_types_count_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_base_types_count_request_builder.go deleted file mode 100644 index 9677401580..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_base_types_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_base_types_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_base_types_request_builder.go deleted file mode 100644 index baa75b1ad9..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_base_types_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetQueryParameters the collection of content types that are ancestors of this content type. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetQueryParameters -} -// ByContentTypeId1 provides operations to manage the baseTypes property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) ByContentTypeId1(contentTypeId1 string)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if contentTypeId1 != "" { - urlTplParams["contentType%2Did1"] = contentTypeId1 - } - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesContentTypeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/baseTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) Count()(*FileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of content types that are ancestors of this content type. -// returns a ContentTypeCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable), nil -} -// ToGetRequestInformation the collection of content types that are ancestors of this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemBaseTypesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_column_links_count_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_column_links_count_request_builder.go deleted file mode 100644 index 3101869544..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_column_links_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_column_links_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_column_links_request_builder.go deleted file mode 100644 index d24d551c37..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_column_links_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetQueryParameters the collection of columns that are required by this content type. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByColumnLinkId provides operations to manage the columnLinks property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) ByColumnLinkId(columnLinkId string)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if columnLinkId != "" { - urlTplParams["columnLink%2Did"] = columnLinkId - } - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksColumnLinkItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnLinks{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) Count()(*FileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of columns that are required by this content type. -// returns a ColumnLinkCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnLinkCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkCollectionResponseable), nil -} -// Post create new navigation property to columnLinks for storage -// returns a ColumnLinkable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnLinkFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable), nil -} -// ToGetRequestInformation the collection of columns that are required by this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columnLinks for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnLinkable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnLinksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_count_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_count_request_builder.go deleted file mode 100644 index bbc1fc5612..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_request_builder.go deleted file mode 100644 index 434267e67b..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_column_positions_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetQueryParameters column order information in a content type. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetQueryParameters -} -// ByColumnDefinitionId provides operations to manage the columnPositions property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) ByColumnDefinitionId(columnDefinitionId string)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if columnDefinitionId != "" { - urlTplParams["columnDefinition%2Did"] = columnDefinitionId - } - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsColumnDefinitionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columnPositions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) Count()(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get column order information in a content type. -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// ToGetRequestInformation column order information in a content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnPositionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_columns_count_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_columns_count_request_builder.go deleted file mode 100644 index 7ca180b485..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_columns_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_columns_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_columns_request_builder.go deleted file mode 100644 index 1d76c1a0d0..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_columns_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder provides operations to manage the columns property of the microsoft.graph.contentType entity. -type FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetQueryParameters the collection of column definitions for this content type. -type FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByColumnDefinitionId provides operations to manage the columns property of the microsoft.graph.contentType entity. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) ByColumnDefinitionId(columnDefinitionId string)(*FileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if columnDefinitionId != "" { - urlTplParams["columnDefinition%2Did"] = columnDefinitionId - } - return NewFileStorageContainersItemDriveListContentTypesItemColumnsColumnDefinitionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/columns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) Count()(*FileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of column definitions for this content type. -// returns a ColumnDefinitionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionCollectionResponseable), nil -} -// Post create new navigation property to columns for storage -// returns a ColumnDefinitionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateColumnDefinitionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable), nil -} -// ToGetRequestInformation the collection of column definitions for this content type. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to columns for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ColumnDefinitionable, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_get_response.go b/storage/file_storage_containers_item_drive_list_content_types_item_is_published_get_response.go deleted file mode 100644 index f7c66a5c8d..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_get_response.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse instantiates a new FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse()(*FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) { - m := &FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetValue(val) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) GetValue()(*bool) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteBoolValue("value", m.GetValue()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse) SetValue(value *bool)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetValue()(*bool) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetValue(value *bool)() -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_is_published_request_builder.go deleted file mode 100644 index ccdb99cab4..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_request_builder.go +++ /dev/null @@ -1,95 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder provides operations to call the isPublished method. -type FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/isPublished()", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderInternal(urlParams, requestAdapter) -} -// Get check the publishing status of a contentType in a content type hub site. -// Deprecated: This method is obsolete. Use GetAsIsPublishedGetResponse instead. -// returns a FileStorageContainersItemDriveListContentTypesItemIsPublishedResponseable 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/contenttype-ispublished?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListContentTypesItemIsPublishedResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListContentTypesItemIsPublishedResponseable), nil -} -// GetAsIsPublishedGetResponse check the publishing status of a contentType in a content type hub site. -// returns a FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable 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/contenttype-ispublished?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) GetAsIsPublishedGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable), nil -} -// ToGetRequestInformation check the publishing status of a contentType in a content type hub site. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemIsPublishedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_response.go b/storage/file_storage_containers_item_drive_list_content_types_item_is_published_response.go deleted file mode 100644 index 20168bad95..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_is_published_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable instead. -type FileStorageContainersItemDriveListContentTypesItemIsPublishedResponse struct { - FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse -} -// NewFileStorageContainersItemDriveListContentTypesItemIsPublishedResponse instantiates a new FileStorageContainersItemDriveListContentTypesItemIsPublishedResponse and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemIsPublishedResponse()(*FileStorageContainersItemDriveListContentTypesItemIsPublishedResponse) { - m := &FileStorageContainersItemDriveListContentTypesItemIsPublishedResponse{ - FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse: *NewFileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListContentTypesItemIsPublishedResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListContentTypesItemIsPublishedResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable instead. -type FileStorageContainersItemDriveListContentTypesItemIsPublishedResponseable interface { - FileStorageContainersItemDriveListContentTypesItemIsPublishedGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_publish_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_publish_request_builder.go deleted file mode 100644 index 1a90aa8eb0..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_publish_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder provides operations to call the publish method. -type FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/publish", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderInternal(urlParams, requestAdapter) -} -// Post publishes a contentType present in the content type hub site. -// 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/contenttype-publish?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation publishes a contentType present in the content type hub site. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemPublishRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_item_unpublish_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_item_unpublish_request_builder.go deleted file mode 100644 index 52ebcab4b3..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_item_unpublish_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder provides operations to call the unpublish method. -type FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes/{contentType%2Did}/unpublish", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderInternal(urlParams, requestAdapter) -} -// Post unpublish a contentType from a content type hub site. -// 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/contenttype-unpublish?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation unpublish a contentType from a content type hub site. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesItemUnpublishRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_content_types_request_builder.go b/storage/file_storage_containers_item_drive_list_content_types_request_builder.go deleted file mode 100644 index 3497225e08..0000000000 --- a/storage/file_storage_containers_item_drive_list_content_types_request_builder.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListContentTypesRequestBuilder provides operations to manage the contentTypes property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListContentTypesRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListContentTypesRequestBuilderGetQueryParameters the collection of content types present in this list. -type FileStorageContainersItemDriveListContentTypesRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListContentTypesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListContentTypesRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListContentTypesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListContentTypesRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// AddCopy provides operations to call the addCopy method. -// returns a *FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) AddCopy()(*FileStorageContainersItemDriveListContentTypesAddCopyRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// AddCopyFromContentTypeHub provides operations to call the addCopyFromContentTypeHub method. -// returns a *FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) AddCopyFromContentTypeHub()(*FileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesAddCopyFromContentTypeHubRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ByContentTypeId provides operations to manage the contentTypes property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) ByContentTypeId(contentTypeId string)(*FileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if contentTypeId != "" { - urlTplParams["contentType%2Did"] = contentTypeId - } - return NewFileStorageContainersItemDriveListContentTypesContentTypeItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListContentTypesRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListContentTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesRequestBuilder) { - m := &FileStorageContainersItemDriveListContentTypesRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/contentTypes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListContentTypesRequestBuilder instantiates a new FileStorageContainersItemDriveListContentTypesRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListContentTypesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListContentTypesRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListContentTypesRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListContentTypesCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) Count()(*FileStorageContainersItemDriveListContentTypesCountRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of content types present in this list. -// returns a ContentTypeCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeCollectionResponseable), nil -} -// GetCompatibleHubContentTypes provides operations to call the getCompatibleHubContentTypes method. -// returns a *FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) GetCompatibleHubContentTypes()(*FileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesGetCompatibleHubContentTypesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Post create new navigation property to contentTypes for storage -// returns a ContentTypeable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *FileStorageContainersItemDriveListContentTypesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateContentTypeFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable), nil -} -// ToGetRequestInformation the collection of content types present in this list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListContentTypesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to contentTypes for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ContentTypeable, requestConfiguration *FileStorageContainersItemDriveListContentTypesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListContentTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListContentTypesRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListContentTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_list_created_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index 4106a4c1bb..0000000000 --- a/storage/file_storage_containers_item_drive_list_created_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\createdByUser\mailboxSettings -type FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_created_by_user_request_builder.go b/storage/file_storage_containers_item_drive_list_created_by_user_request_builder.go deleted file mode 100644 index 46690f06b2..0000000000 --- a/storage/file_storage_containers_item_drive_list_created_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListCreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveListCreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListCreatedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveListCreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListCreatedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveListCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_created_by_user_service_provisioning_errors_request_builder.go b/storage/file_storage_containers_item_drive_list_created_by_user_service_provisioning_errors_request_builder.go deleted file mode 100644 index 7719abfcce..0000000000 --- a/storage/file_storage_containers_item_drive_list_created_by_user_service_provisioning_errors_request_builder.go +++ /dev/null @@ -1,98 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\createdByUser\serviceProvisioningErrors -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) { - m := &FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/createdByUser/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder instantiates a new FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a ServiceProvisioningErrorCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceProvisioningErrorCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceProvisioningErrorCollectionResponseable), nil -} -// ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_drive_request_builder.go b/storage/file_storage_containers_item_drive_list_drive_request_builder.go deleted file mode 100644 index 985a336efe..0000000000 --- a/storage/file_storage_containers_item_drive_list_drive_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListDriveRequestBuilder provides operations to manage the drive property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListDriveRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListDriveRequestBuilderGetQueryParameters allows access to the list as a drive resource with driveItems. Only present on document libraries. -type FileStorageContainersItemDriveListDriveRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListDriveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListDriveRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListDriveRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListDriveRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListDriveRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListDriveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListDriveRequestBuilder) { - m := &FileStorageContainersItemDriveListDriveRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/drive{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListDriveRequestBuilder instantiates a new FileStorageContainersItemDriveListDriveRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListDriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListDriveRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListDriveRequestBuilderInternal(urlParams, requestAdapter) -} -// Get allows access to the list as a drive resource with driveItems. Only present on document libraries. -// returns a Driveable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListDriveRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListDriveRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable), nil -} -// ToGetRequestInformation allows access to the list as a drive resource with driveItems. Only present on document libraries. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListDriveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListDriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListDriveRequestBuilder when successful -func (m *FileStorageContainersItemDriveListDriveRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListDriveRequestBuilder) { - return NewFileStorageContainersItemDriveListDriveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_get_response.go b/storage/file_storage_containers_item_drive_list_items_delta_get_response.go deleted file mode 100644 index 4c0c35b062..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveListItemsDeltaGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponse -} -// NewFileStorageContainersItemDriveListItemsDeltaGetResponse instantiates a new FileStorageContainersItemDriveListItemsDeltaGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaGetResponse()(*FileStorageContainersItemDriveListItemsDeltaGetResponse) { - m := &FileStorageContainersItemDriveListItemsDeltaGetResponse{ - BaseDeltaFunctionResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseDeltaFunctionResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsDeltaGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsDeltaGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsDeltaGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListItemsDeltaGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseDeltaFunctionResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ListItemable when successful -func (m *FileStorageContainersItemDriveListItemsDeltaGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListItemsDeltaGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseDeltaFunctionResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListItemsDeltaGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListItemsDeltaGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable)() -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_request_builder.go b/storage/file_storage_containers_item_drive_list_items_delta_request_builder.go deleted file mode 100644 index 7a8832869c..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_request_builder.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsDeltaRequestBuilder provides operations to call the delta method. -type FileStorageContainersItemDriveListItemsDeltaRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetQueryParameters get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. -type FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsDeltaRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsDeltaRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsDeltaRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsDeltaRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsDeltaRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsDeltaRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsDeltaRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. -// Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead. -// returns a FileStorageContainersItemDriveListItemsDeltaResponseable 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/listitem-delta?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListItemsDeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsDeltaResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsDeltaResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsDeltaResponseable), nil -} -// GetAsDeltaGetResponse get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. -// returns a FileStorageContainersItemDriveListItemsDeltaGetResponseable 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/listitem-delta?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListItemsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsDeltaGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsDeltaGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsDeltaGetResponseable), nil -} -// ToGetRequestInformation get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the changes, you can apply them to your local state.To check for changes in the future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsDeltaRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_response.go b/storage/file_storage_containers_item_drive_list_items_delta_response.go deleted file mode 100644 index db1514b29b..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsDeltaGetResponseable instead. -type FileStorageContainersItemDriveListItemsDeltaResponse struct { - FileStorageContainersItemDriveListItemsDeltaGetResponse -} -// NewFileStorageContainersItemDriveListItemsDeltaResponse instantiates a new FileStorageContainersItemDriveListItemsDeltaResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaResponse()(*FileStorageContainersItemDriveListItemsDeltaResponse) { - m := &FileStorageContainersItemDriveListItemsDeltaResponse{ - FileStorageContainersItemDriveListItemsDeltaGetResponse: *NewFileStorageContainersItemDriveListItemsDeltaGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsDeltaResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsDeltaResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsDeltaResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsDeltaGetResponseable instead. -type FileStorageContainersItemDriveListItemsDeltaResponseable interface { - FileStorageContainersItemDriveListItemsDeltaGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_with_token_get_response.go b/storage/file_storage_containers_item_drive_list_items_delta_with_token_get_response.go deleted file mode 100644 index 2bf80db46b..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_with_token_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponse -} -// NewFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse instantiates a new FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse()(*FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse) { - m := &FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse{ - BaseDeltaFunctionResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseDeltaFunctionResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseDeltaFunctionResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ListItemable when successful -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseDeltaFunctionResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseDeltaFunctionResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable)() -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_with_token_request_builder.go b/storage/file_storage_containers_item_drive_list_items_delta_with_token_request_builder.go deleted file mode 100644 index 8584a640bb..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_with_token_request_builder.go +++ /dev/null @@ -1,116 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder provides operations to call the delta method. -type FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetQueryParameters invoke function delta -type FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, token *string)(*FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/delta(token='{token}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if token != nil { - m.BaseRequestBuilder.PathParameters["token"] = *token - } - return m -} -// NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get invoke function delta -// Deprecated: This method is obsolete. Use GetAsDeltaWithTokenGetResponse instead. -// returns a FileStorageContainersItemDriveListItemsDeltaWithTokenResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsDeltaWithTokenResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsDeltaWithTokenResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsDeltaWithTokenResponseable), nil -} -// GetAsDeltaWithTokenGetResponse invoke function delta -// returns a FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) GetAsDeltaWithTokenGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable), nil -} -// ToGetRequestInformation invoke function delta -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_delta_with_token_response.go b/storage/file_storage_containers_item_drive_list_items_delta_with_token_response.go deleted file mode 100644 index 8f6fae3eb5..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_delta_with_token_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable instead. -type FileStorageContainersItemDriveListItemsDeltaWithTokenResponse struct { - FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse -} -// NewFileStorageContainersItemDriveListItemsDeltaWithTokenResponse instantiates a new FileStorageContainersItemDriveListItemsDeltaWithTokenResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsDeltaWithTokenResponse()(*FileStorageContainersItemDriveListItemsDeltaWithTokenResponse) { - m := &FileStorageContainersItemDriveListItemsDeltaWithTokenResponse{ - FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse: *NewFileStorageContainersItemDriveListItemsDeltaWithTokenGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsDeltaWithTokenResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsDeltaWithTokenResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsDeltaWithTokenResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable instead. -type FileStorageContainersItemDriveListItemsDeltaWithTokenResponseable interface { - FileStorageContainersItemDriveListItemsDeltaWithTokenGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_analytics_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_analytics_request_builder.go deleted file mode 100644 index 89aa46cb7d..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_analytics_request_builder.go +++ /dev/null @@ -1,81 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder provides operations to manage the analytics property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetQueryParameters analytics about the view activities that took place on this item. -type FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/analytics{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get analytics about the view activities that took place on this item. -// returns a ItemAnalyticsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemAnalyticsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemAnalyticsable), nil -} -// ToGetRequestInformation analytics about the view activities that took place on this item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_create_link_post_request_body.go b/storage/file_storage_containers_item_drive_list_items_item_create_link_post_request_body.go deleted file mode 100644 index 5b59edbe17..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_create_link_post_request_body.go +++ /dev/null @@ -1,386 +0,0 @@ -package storage - -import ( - i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" -) - -type FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody struct { - // Stores model information. - backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore -} -// NewFileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody instantiates a new FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody()(*FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) { - m := &FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody{ - } - m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateFileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetAdditionalData()(map[string]any) { - val , err := m.backingStore.Get("additionalData") - if err != nil { - panic(err) - } - if val == nil { - var value = make(map[string]any); - m.SetAdditionalData(value); - } - return val.(map[string]any) -} -// GetBackingStore gets the BackingStore property value. Stores model information. -// returns a BackingStore when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { - return m.backingStore -} -// GetExpirationDateTime gets the expirationDateTime property value. The expirationDateTime property -// returns a *Time when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { - val, err := m.GetBackingStore().Get("expirationDateTime") - if err != nil { - panic(err) - } - if val != nil { - return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - } - return nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["expirationDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetTimeValue() - if err != nil { - return err - } - if val != nil { - m.SetExpirationDateTime(val) - } - return nil - } - res["message"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetMessage(val) - } - return nil - } - res["password"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetPassword(val) - } - return nil - } - res["recipients"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveRecipientFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - } - m.SetRecipients(res) - } - return nil - } - res["retainInheritedPermissions"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetRetainInheritedPermissions(val) - } - return nil - } - res["scope"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetScope(val) - } - return nil - } - res["sendNotification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetBoolValue() - if err != nil { - return err - } - if val != nil { - m.SetSendNotification(val) - } - return nil - } - res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetTypeEscaped(val) - } - return nil - } - return res -} -// GetMessage gets the message property value. The message property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetMessage()(*string) { - val, err := m.GetBackingStore().Get("message") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetPassword gets the password property value. The password property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetPassword()(*string) { - val, err := m.GetBackingStore().Get("password") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetRecipients gets the recipients property value. The recipients property -// returns a []DriveRecipientable when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) { - val, err := m.GetBackingStore().Get("recipients") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - } - return nil -} -// GetRetainInheritedPermissions gets the retainInheritedPermissions property value. The retainInheritedPermissions property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetRetainInheritedPermissions()(*bool) { - val, err := m.GetBackingStore().Get("retainInheritedPermissions") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetScope gets the scope property value. The scope property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetScope()(*string) { - val, err := m.GetBackingStore().Get("scope") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// GetSendNotification gets the sendNotification property value. The sendNotification property -// returns a *bool when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetSendNotification()(*bool) { - val, err := m.GetBackingStore().Get("sendNotification") - if err != nil { - panic(err) - } - if val != nil { - return val.(*bool) - } - return nil -} -// GetTypeEscaped gets the type property value. The type property -// returns a *string when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) GetTypeEscaped()(*string) { - val, err := m.GetBackingStore().Get("typeEscaped") - if err != nil { - panic(err) - } - if val != nil { - return val.(*string) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - { - err := writer.WriteTimeValue("expirationDateTime", m.GetExpirationDateTime()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("message", m.GetMessage()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("password", m.GetPassword()) - if err != nil { - return err - } - } - if m.GetRecipients() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRecipients())) - for i, v := range m.GetRecipients() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("recipients", cast) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("retainInheritedPermissions", m.GetRetainInheritedPermissions()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("scope", m.GetScope()) - if err != nil { - return err - } - } - { - err := writer.WriteBoolValue("sendNotification", m.GetSendNotification()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("type", m.GetTypeEscaped()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetAdditionalData(value map[string]any)() { - err := m.GetBackingStore().Set("additionalData", value) - if err != nil { - panic(err) - } -} -// SetBackingStore sets the BackingStore property value. Stores model information. -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { - m.backingStore = value -} -// SetExpirationDateTime sets the expirationDateTime property value. The expirationDateTime property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { - err := m.GetBackingStore().Set("expirationDateTime", value) - if err != nil { - panic(err) - } -} -// SetMessage sets the message property value. The message property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetMessage(value *string)() { - err := m.GetBackingStore().Set("message", value) - if err != nil { - panic(err) - } -} -// SetPassword sets the password property value. The password property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetPassword(value *string)() { - err := m.GetBackingStore().Set("password", value) - if err != nil { - panic(err) - } -} -// SetRecipients sets the recipients property value. The recipients property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() { - err := m.GetBackingStore().Set("recipients", value) - if err != nil { - panic(err) - } -} -// SetRetainInheritedPermissions sets the retainInheritedPermissions property value. The retainInheritedPermissions property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetRetainInheritedPermissions(value *bool)() { - err := m.GetBackingStore().Set("retainInheritedPermissions", value) - if err != nil { - panic(err) - } -} -// SetScope sets the scope property value. The scope property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetScope(value *string)() { - err := m.GetBackingStore().Set("scope", value) - if err != nil { - panic(err) - } -} -// SetSendNotification sets the sendNotification property value. The sendNotification property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetSendNotification(value *bool)() { - err := m.GetBackingStore().Set("sendNotification", value) - if err != nil { - panic(err) - } -} -// SetTypeEscaped sets the type property value. The type property -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBody) SetTypeEscaped(value *string)() { - err := m.GetBackingStore().Set("typeEscaped", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBodyable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) - GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) - GetMessage()(*string) - GetPassword()(*string) - GetRecipients()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable) - GetRetainInheritedPermissions()(*bool) - GetScope()(*string) - GetSendNotification()(*bool) - GetTypeEscaped()(*string) - SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() - SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() - SetMessage(value *string)() - SetPassword(value *string)() - SetRecipients(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveRecipientable)() - SetRetainInheritedPermissions(value *bool)() - SetScope(value *string)() - SetSendNotification(value *bool)() - SetTypeEscaped(value *string)() -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_create_link_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_create_link_request_builder.go deleted file mode 100644 index 7800427bce..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_create_link_request_builder.go +++ /dev/null @@ -1,73 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder provides operations to call the createLink method. -type FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createLink", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderInternal(urlParams, requestAdapter) -} -// Post invoke action createLink -// returns a Permissionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) Post(ctx context.Context, body FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreatePermissionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Permissionable), nil -} -// ToPostRequestInformation invoke action createLink -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) ToPostRequestInformation(ctx context.Context, body FileStorageContainersItemDriveListItemsItemCreateLinkPostRequestBodyable, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_created_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index fa4b0d714e..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_created_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\items\{listItem-id}\createdByUser\mailboxSettings -type FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_created_by_user_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_created_by_user_request_builder.go deleted file mode 100644 index 4a5e3a0596..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_created_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetQueryParameters identity of the user who created the item. Read-only. -type FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/createdByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who created the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who created the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_count_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_count_request_builder.go deleted file mode 100644 index e2a1991d2c..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_item_fields_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_item_fields_request_builder.go deleted file mode 100644 index d761ab6e49..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_item_fields_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetQueryParameters a collection of the fields and values for this version of the list item. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions/{documentSetVersion%2Did}/fields{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fields for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get a collection of the fields and values for this version of the list item. -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// Patch update the navigation property fields in storage -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// ToDeleteRequestInformation delete navigation property fields for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation a collection of the fields and values for this version of the list item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fields in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsItemFieldsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_request_builder.go deleted file mode 100644 index e4c650511c..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_document_set_versions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetQueryParameters version information for a document set version created by a user. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByDocumentSetVersionId provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) ByDocumentSetVersionId(documentSetVersionId string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if documentSetVersionId != "" { - urlTplParams["documentSetVersion%2Did"] = documentSetVersionId - } - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsDocumentSetVersionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/documentSetVersions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) Count()(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get version information for a document set version created by a user. -// returns a DocumentSetVersionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDocumentSetVersionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionCollectionResponseable), nil -} -// Post create new navigation property to documentSetVersions for storage -// returns a DocumentSetVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDocumentSetVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable), nil -} -// ToGetRequestInformation version information for a document set version created by a user. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to documentSetVersions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DocumentSetVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_drive_item_content_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_drive_item_content_request_builder.go deleted file mode 100644 index ff171b8fad..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_drive_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_drive_item_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_drive_item_request_builder.go deleted file mode 100644 index 615f6910a0..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_drive_item_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder provides operations to manage the driveItem property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetQueryParameters for document libraries, the driveItem relationship exposes the listItem as a driveItem -type FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/driveItem{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) Content()(*FileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDriveItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get for document libraries, the driveItem relationship exposes the listItem as a driveItem -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation for document libraries, the driveItem relationship exposes the listItem as a driveItem -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_fields_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_fields_request_builder.go deleted file mode 100644 index 72012943b9..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_fields_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder provides operations to manage the fields property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetQueryParameters the values of the columns set on this list item. -type FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/fields{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fields for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the values of the columns set on this list item. -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// Patch update the navigation property fields in storage -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// ToDeleteRequestInformation delete navigation property fields for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the values of the columns set on this list item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fields in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_get_response.go b/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_get_response.go deleted file mode 100644 index 2e82b4fdac..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse()(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemActivityStatFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []ItemActivityStatable when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemActivityStatable)() -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_request_builder.go deleted file mode 100644 index 2fa9667ddf..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_request_builder.go +++ /dev/null @@ -1,113 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder provides operations to call the getActivitiesByInterval method. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters invoke function getActivitiesByInterval -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/getActivitiesByInterval(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderInternal(urlParams, requestAdapter) -} -// Get invoke function getActivitiesByInterval -// Deprecated: This method is obsolete. Use GetAsGetActivitiesByIntervalGetResponse instead. -// returns a FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseable), nil -} -// GetAsGetActivitiesByIntervalGetResponse invoke function getActivitiesByInterval -// returns a FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) GetAsGetActivitiesByIntervalGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable), nil -} -// ToGetRequestInformation invoke function getActivitiesByInterval -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_response.go b/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_response.go deleted file mode 100644 index 8234450780..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_get_activities_by_interval_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable instead. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse struct { - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse -} -// NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse instantiates a new FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse()(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse) { - m := &FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse{ - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse: *NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable instead. -type FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalResponseable interface { - FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_last_modified_by_user_request_builder.go deleted file mode 100644 index b7b839f39a..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_versions_count_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_versions_count_request_builder.go deleted file mode 100644 index 2ce4099753..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_versions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_versions_item_fields_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_versions_item_fields_request_builder.go deleted file mode 100644 index abf6303ddf..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_versions_item_fields_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. -type FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetQueryParameters a collection of the fields and values for this version of the list item. -type FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/fields{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property fields for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get a collection of the fields and values for this version of the list item. -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// Patch update the navigation property fields in storage -// returns a FieldValueSetable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateFieldValueSetFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable), nil -} -// ToDeleteRequestInformation delete navigation property fields for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation a collection of the fields and values for this version of the list item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property fields in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.FieldValueSetable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_versions_item_restore_version_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_versions_item_restore_version_request_builder.go deleted file mode 100644 index d6952a9136..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_versions_item_restore_version_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder provides operations to call the restoreVersion method. -type FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}/restoreVersion", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderInternal(urlParams, requestAdapter) -} -// Post restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. -// 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/listitemversion-restore?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation restore a previous version of a ListItem to be the current version. This will create a new version with the contents of the previous version, but preserves all existing versions of the item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_versions_list_item_version_item_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_versions_list_item_version_item_request_builder.go deleted file mode 100644 index 971fbefc85..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_versions_list_item_version_item_request_builder.go +++ /dev/null @@ -1,167 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder provides operations to manage the versions property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetQueryParameters the list of previous versions of the list item. -type FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions/{listItemVersion%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property versions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Fields provides operations to manage the fields property of the microsoft.graph.listItemVersion entity. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) Fields()(*FileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsItemFieldsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the list of previous versions of the list item. -// returns a ListItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable), nil -} -// Patch update the navigation property versions in storage -// returns a ListItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable), nil -} -// RestoreVersion provides operations to call the restoreVersion method. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) RestoreVersion()(*FileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsItemRestoreVersionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property versions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the list of previous versions of the list item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property versions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_item_versions_request_builder.go b/storage/file_storage_containers_item_drive_list_items_item_versions_request_builder.go deleted file mode 100644 index f39305858d..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_item_versions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder provides operations to manage the versions property of the microsoft.graph.listItem entity. -type FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetQueryParameters the list of previous versions of the list item. -type FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByListItemVersionId provides operations to manage the versions property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) ByListItemVersionId(listItemVersionId string)(*FileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if listItemVersionId != "" { - urlTplParams["listItemVersion%2Did"] = listItemVersionId - } - return NewFileStorageContainersItemDriveListItemsItemVersionsListItemVersionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}/versions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) Count()(*FileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the list of previous versions of the list item. -// returns a ListItemVersionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemVersionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionCollectionResponseable), nil -} -// Post create new navigation property to versions for storage -// returns a ListItemVersionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemVersionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable), nil -} -// ToGetRequestInformation the list of previous versions of the list item. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to versions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemVersionable, requestConfiguration *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_list_item_item_request_builder.go b/storage/file_storage_containers_item_drive_list_items_list_item_item_request_builder.go deleted file mode 100644 index 0edacb888c..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_list_item_item_request_builder.go +++ /dev/null @@ -1,207 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsListItemItemRequestBuilder provides operations to manage the items property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListItemsListItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsListItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsListItemItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetQueryParameters all items contained in the list. -type FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsListItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsListItemItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Analytics provides operations to manage the analytics property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Analytics()(*FileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemAnalyticsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsListItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsListItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items/{listItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsListItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) CreatedByUser()(*FileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreateLink provides operations to call the createLink method. -// returns a *FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) CreateLink()(*FileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemCreateLinkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property items for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// DocumentSetVersions provides operations to manage the documentSetVersions property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) DocumentSetVersions()(*FileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDocumentSetVersionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DriveItem provides operations to manage the driveItem property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) DriveItem()(*FileStorageContainersItemDriveListItemsItemDriveItemRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemDriveItemRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Fields provides operations to manage the fields property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Fields()(*FileStorageContainersItemDriveListItemsItemFieldsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemFieldsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get all items contained in the list. -// returns a ListItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable), nil -} -// GetActivitiesByInterval provides operations to call the getActivitiesByInterval method. -// returns a *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) GetActivitiesByInterval()(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval provides operations to call the getActivitiesByInterval method. -// returns a *FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval(endDateTime *string, interval *string, startDateTime *string)(*FileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, interval, startDateTime) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) LastModifiedByUser()(*FileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemLastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property items in storage -// returns a ListItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable), nil -} -// ToDeleteRequestInformation delete navigation property items for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation all items contained in the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property items in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, requestConfiguration *FileStorageContainersItemDriveListItemsListItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// Versions provides operations to manage the versions property of the microsoft.graph.listItem entity. -// returns a *FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) Versions()(*FileStorageContainersItemDriveListItemsItemVersionsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsItemVersionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_items_request_builder.go b/storage/file_storage_containers_item_drive_list_items_request_builder.go deleted file mode 100644 index 6cf52fa7e4..0000000000 --- a/storage/file_storage_containers_item_drive_list_items_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListItemsRequestBuilder provides operations to manage the items property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListItemsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListItemsRequestBuilderGetQueryParameters all items contained in the list. -type FileStorageContainersItemDriveListItemsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListItemsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListItemsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByListItemId provides operations to manage the items property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListItemsListItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) ByListItemId(listItemId string)(*FileStorageContainersItemDriveListItemsListItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if listItemId != "" { - urlTplParams["listItem%2Did"] = listItemId - } - return NewFileStorageContainersItemDriveListItemsListItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListItemsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListItemsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsRequestBuilder) { - m := &FileStorageContainersItemDriveListItemsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListItemsRequestBuilder instantiates a new FileStorageContainersItemDriveListItemsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListItemsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListItemsRequestBuilderInternal(urlParams, requestAdapter) -} -// Delta provides operations to call the delta method. -// returns a *FileStorageContainersItemDriveListItemsDeltaRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) Delta()(*FileStorageContainersItemDriveListItemsDeltaRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// DeltaWithToken provides operations to call the delta method. -// returns a *FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) DeltaWithToken(token *string)(*FileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsDeltaWithTokenRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, token) -} -// Get all items contained in the list. -// returns a ListItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemCollectionResponseable), nil -} -// Post create new navigation property to items for storage -// returns a ListItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, requestConfiguration *FileStorageContainersItemDriveListItemsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable), nil -} -// ToGetRequestInformation all items contained in the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to items for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ListItemable, requestConfiguration *FileStorageContainersItemDriveListItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListItemsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListItemsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListItemsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_last_modified_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_drive_list_last_modified_by_user_mailbox_settings_request_builder.go deleted file mode 100644 index c36feb68ff..0000000000 --- a/storage/file_storage_containers_item_drive_list_last_modified_by_user_mailbox_settings_request_builder.go +++ /dev/null @@ -1,123 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder builds and executes requests for operations under \storage\fileStorage\containers\{fileStorageContainer-id}\drive\list\lastModifiedByUser\mailboxSettings -type FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -type FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) { - m := &FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser/mailboxSettings{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder instantiates a new FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderInternal(urlParams, requestAdapter) -} -// Get settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// Patch update property mailboxSettings value. -// returns a MailboxSettingsable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateMailboxSettingsFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable), nil -} -// ToGetRequestInformation settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update property mailboxSettings value. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.MailboxSettingsable, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_drive_list_last_modified_by_user_request_builder.go deleted file mode 100644 index 202130b11b..0000000000 --- a/storage/file_storage_containers_item_drive_list_last_modified_by_user_request_builder.go +++ /dev/null @@ -1,91 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -type FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetQueryParameters identity of the user who last modified the item. Read-only. -type FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) { - m := &FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/lastModifiedByUser{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilder instantiates a new FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) -} -// Get identity of the user who last modified the item. Read-only. -// returns a Userable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil -} -// MailboxSettings the mailboxSettings property -// returns a *FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) MailboxSettings()(*FileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserMailboxSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ServiceProvisioningErrors the serviceProvisioningErrors property -// returns a *FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*FileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToGetRequestInformation identity of the user who last modified the item. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_operations_count_request_builder.go b/storage/file_storage_containers_item_drive_list_operations_count_request_builder.go deleted file mode 100644 index c1e4ca9588..0000000000 --- a/storage/file_storage_containers_item_drive_list_operations_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListOperationsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListOperationsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListOperationsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListOperationsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListOperationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListOperationsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListOperationsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListOperationsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListOperationsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListOperationsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListOperationsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListOperationsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListOperationsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListOperationsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListOperationsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_operations_request_builder.go b/storage/file_storage_containers_item_drive_list_operations_request_builder.go deleted file mode 100644 index c8073a9015..0000000000 --- a/storage/file_storage_containers_item_drive_list_operations_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListOperationsRequestBuilder provides operations to manage the operations property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListOperationsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListOperationsRequestBuilderGetQueryParameters the collection of long-running operations on the list. -type FileStorageContainersItemDriveListOperationsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListOperationsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListOperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// ByRichLongRunningOperationId provides operations to manage the operations property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) ByRichLongRunningOperationId(richLongRunningOperationId string)(*FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if richLongRunningOperationId != "" { - urlTplParams["richLongRunningOperation%2Did"] = richLongRunningOperationId - } - return NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListOperationsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListOperationsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsRequestBuilder) { - m := &FileStorageContainersItemDriveListOperationsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListOperationsRequestBuilder instantiates a new FileStorageContainersItemDriveListOperationsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListOperationsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListOperationsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) Count()(*FileStorageContainersItemDriveListOperationsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the collection of long-running operations on the list. -// returns a RichLongRunningOperationCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationCollectionResponseable), nil -} -// Post create new navigation property to operations for storage -// returns a RichLongRunningOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *FileStorageContainersItemDriveListOperationsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable), nil -} -// ToGetRequestInformation the collection of long-running operations on the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to operations for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *FileStorageContainersItemDriveListOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListOperationsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListOperationsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListOperationsRequestBuilder) { - return NewFileStorageContainersItemDriveListOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_operations_rich_long_running_operation_item_request_builder.go b/storage/file_storage_containers_item_drive_list_operations_rich_long_running_operation_item_request_builder.go deleted file mode 100644 index 42aaa97c5e..0000000000 --- a/storage/file_storage_containers_item_drive_list_operations_rich_long_running_operation_item_request_builder.go +++ /dev/null @@ -1,157 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder provides operations to manage the operations property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetQueryParameters the collection of long-running operations on the list. -type FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) { - m := &FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/operations/{richLongRunningOperation%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder instantiates a new FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property operations for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the collection of long-running operations on the list. -// returns a RichLongRunningOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable), nil -} -// Patch update the navigation property operations in storage -// returns a RichLongRunningOperationable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateRichLongRunningOperationFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable), nil -} -// ToDeleteRequestInformation delete navigation property operations for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the collection of long-running operations on the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property operations in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.RichLongRunningOperationable, requestConfiguration *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder) { - return NewFileStorageContainersItemDriveListOperationsRichLongRunningOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_request_builder.go b/storage/file_storage_containers_item_drive_list_request_builder.go deleted file mode 100644 index 7a25a59d6f..0000000000 --- a/storage/file_storage_containers_item_drive_list_request_builder.go +++ /dev/null @@ -1,197 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListRequestBuilder provides operations to manage the list property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveListRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListRequestBuilderGetQueryParameters for drives in SharePoint, the underlying document library list. Read-only. Nullable. -type FileStorageContainersItemDriveListRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Columns provides operations to manage the columns property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListColumnsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) Columns()(*FileStorageContainersItemDriveListColumnsRequestBuilder) { - return NewFileStorageContainersItemDriveListColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListRequestBuilder) { - m := &FileStorageContainersItemDriveListRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListRequestBuilder instantiates a new FileStorageContainersItemDriveListRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListRequestBuilderInternal(urlParams, requestAdapter) -} -// ContentTypes provides operations to manage the contentTypes property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListContentTypesRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) ContentTypes()(*FileStorageContainersItemDriveListContentTypesRequestBuilder) { - return NewFileStorageContainersItemDriveListContentTypesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveListCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) CreatedByUser()(*FileStorageContainersItemDriveListCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListCreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property list for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Drive provides operations to manage the drive property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListDriveRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) Drive()(*FileStorageContainersItemDriveListDriveRequestBuilder) { - return NewFileStorageContainersItemDriveListDriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get for drives in SharePoint, the underlying document library list. Read-only. Nullable. -// returns a Listable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable), nil -} -// Items provides operations to manage the items property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListItemsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) Items()(*FileStorageContainersItemDriveListItemsRequestBuilder) { - return NewFileStorageContainersItemDriveListItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) LastModifiedByUser()(*FileStorageContainersItemDriveListLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveListLastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Operations provides operations to manage the operations property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListOperationsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) Operations()(*FileStorageContainersItemDriveListOperationsRequestBuilder) { - return NewFileStorageContainersItemDriveListOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property list in storage -// returns a Listable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateListFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable), nil -} -// Subscriptions provides operations to manage the subscriptions property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListSubscriptionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) Subscriptions()(*FileStorageContainersItemDriveListSubscriptionsRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property list for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation for drives in SharePoint, the underlying document library list. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property list in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Listable, requestConfiguration *FileStorageContainersItemDriveListRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListRequestBuilder when successful -func (m *FileStorageContainersItemDriveListRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListRequestBuilder) { - return NewFileStorageContainersItemDriveListRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_subscriptions_count_request_builder.go b/storage/file_storage_containers_item_drive_list_subscriptions_count_request_builder.go deleted file mode 100644 index 281c91e8af..0000000000 --- a/storage/file_storage_containers_item_drive_list_subscriptions_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) { - m := &FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilder instantiates a new FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_subscriptions_item_reauthorize_request_builder.go b/storage/file_storage_containers_item_drive_list_subscriptions_item_reauthorize_request_builder.go deleted file mode 100644 index 66c1811134..0000000000 --- a/storage/file_storage_containers_item_drive_list_subscriptions_item_reauthorize_request_builder.go +++ /dev/null @@ -1,67 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder provides operations to call the reauthorize method. -type FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) { - m := &FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}/reauthorize", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder instantiates a new FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderInternal(urlParams, requestAdapter) -} -// Post reauthorize a subscription when you receive a reauthorizationRequired challenge. -// 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/subscription-reauthorize?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration)(error) { - requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// ToPostRequestInformation reauthorize a subscription when you receive a reauthorizationRequired challenge. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_subscriptions_request_builder.go b/storage/file_storage_containers_item_drive_list_subscriptions_request_builder.go deleted file mode 100644 index dac8d57981..0000000000 --- a/storage/file_storage_containers_item_drive_list_subscriptions_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListSubscriptionsRequestBuilder provides operations to manage the subscriptions property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListSubscriptionsRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetQueryParameters the set of subscriptions on the list. -type FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListSubscriptionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsRequestBuilderPostRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// BySubscriptionId provides operations to manage the subscriptions property of the microsoft.graph.list entity. -// returns a *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) BySubscriptionId(subscriptionId string)(*FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if subscriptionId != "" { - urlTplParams["subscription%2Did"] = subscriptionId - } - return NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveListSubscriptionsRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListSubscriptionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsRequestBuilder) { - m := &FileStorageContainersItemDriveListSubscriptionsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListSubscriptionsRequestBuilder instantiates a new FileStorageContainersItemDriveListSubscriptionsRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListSubscriptionsRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) Count()(*FileStorageContainersItemDriveListSubscriptionsCountRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the set of subscriptions on the list. -// returns a SubscriptionCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SubscriptionCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.SubscriptionCollectionResponseable), nil -} -// Post create new navigation property to subscriptions for storage -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// ToGetRequestInformation the set of subscriptions on the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPostRequestInformation create new navigation property to subscriptions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListSubscriptionsRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListSubscriptionsRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_list_subscriptions_subscription_item_request_builder.go b/storage/file_storage_containers_item_drive_list_subscriptions_subscription_item_request_builder.go deleted file mode 100644 index 5fe69f3328..0000000000 --- a/storage/file_storage_containers_item_drive_list_subscriptions_subscription_item_request_builder.go +++ /dev/null @@ -1,162 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder provides operations to manage the subscriptions property of the microsoft.graph.list entity. -type FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters the set of subscriptions on the list. -type FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) { - m := &FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/list/subscriptions/{subscription%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder instantiates a new FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete delete navigation property subscriptions for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the set of subscriptions on the list. -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// Patch update the navigation property subscriptions in storage -// returns a Subscriptionable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateSubscriptionFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable), nil -} -// Reauthorize provides operations to call the reauthorize method. -// returns a *FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) Reauthorize()(*FileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsItemReauthorizeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property subscriptions for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the set of subscriptions on the list. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToPatchRequestInformation update the navigation property subscriptions in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Subscriptionable, requestConfiguration *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder) { - return NewFileStorageContainersItemDriveListSubscriptionsSubscriptionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_recent_get_response.go b/storage/file_storage_containers_item_drive_recent_get_response.go deleted file mode 100644 index ed15311f58..0000000000 --- a/storage/file_storage_containers_item_drive_recent_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveRecentGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveRecentGetResponse instantiates a new FileStorageContainersItemDriveRecentGetResponse and sets the default values. -func NewFileStorageContainersItemDriveRecentGetResponse()(*FileStorageContainersItemDriveRecentGetResponse) { - m := &FileStorageContainersItemDriveRecentGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveRecentGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveRecentGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveRecentGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveRecentGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveRecentGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveRecentGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveRecentGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveRecentGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_recent_request_builder.go b/storage/file_storage_containers_item_drive_recent_request_builder.go deleted file mode 100644 index 5474d8de79..0000000000 --- a/storage/file_storage_containers_item_drive_recent_request_builder.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveRecentRequestBuilder provides operations to call the recent method. -type FileStorageContainersItemDriveRecentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveRecentRequestBuilderGetQueryParameters list a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. -type FileStorageContainersItemDriveRecentRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveRecentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRecentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveRecentRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveRecentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveRecentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRecentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRecentRequestBuilder) { - m := &FileStorageContainersItemDriveRecentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/recent(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveRecentRequestBuilder instantiates a new FileStorageContainersItemDriveRecentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRecentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRecentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveRecentRequestBuilderInternal(urlParams, requestAdapter) -} -// Get list a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. -// Deprecated: This method is obsolete. Use GetAsRecentGetResponse instead. -// returns a FileStorageContainersItemDriveRecentResponseable 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/drive-recent?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveRecentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRecentRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveRecentResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveRecentResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveRecentResponseable), nil -} -// GetAsRecentGetResponse list a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. -// returns a FileStorageContainersItemDriveRecentGetResponseable 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/drive-recent?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveRecentRequestBuilder) GetAsRecentGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRecentRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveRecentGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveRecentGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveRecentGetResponseable), nil -} -// ToGetRequestInformation list a set of items that have been recently used by the signed in user.This collection includes items that are in the user's drive and items they have access to from other drives. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRecentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRecentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveRecentRequestBuilder when successful -func (m *FileStorageContainersItemDriveRecentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveRecentRequestBuilder) { - return NewFileStorageContainersItemDriveRecentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_recent_response.go b/storage/file_storage_containers_item_drive_recent_response.go deleted file mode 100644 index 7df3571cef..0000000000 --- a/storage/file_storage_containers_item_drive_recent_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveRecentGetResponseable instead. -type FileStorageContainersItemDriveRecentResponse struct { - FileStorageContainersItemDriveRecentGetResponse -} -// NewFileStorageContainersItemDriveRecentResponse instantiates a new FileStorageContainersItemDriveRecentResponse and sets the default values. -func NewFileStorageContainersItemDriveRecentResponse()(*FileStorageContainersItemDriveRecentResponse) { - m := &FileStorageContainersItemDriveRecentResponse{ - FileStorageContainersItemDriveRecentGetResponse: *NewFileStorageContainersItemDriveRecentGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveRecentResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveRecentResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveRecentResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveRecentGetResponseable instead. -type FileStorageContainersItemDriveRecentResponseable interface { - FileStorageContainersItemDriveRecentGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_request_builder.go b/storage/file_storage_containers_item_drive_request_builder.go index a0f10bfcb2..2170d009d0 100644 --- a/storage/file_storage_containers_item_drive_request_builder.go +++ b/storage/file_storage_containers_item_drive_request_builder.go @@ -11,13 +11,6 @@ import ( type FileStorageContainersItemDriveRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// FileStorageContainersItemDriveRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} // FileStorageContainersItemDriveRequestBuilderGetQueryParameters the drive of the resource fileStorageContainer. Read-only. type FileStorageContainersItemDriveRequestBuilderGetQueryParameters struct { // Expand related entities @@ -34,18 +27,6 @@ type FileStorageContainersItemDriveRequestBuilderGetRequestConfiguration struct // Request query parameters QueryParameters *FileStorageContainersItemDriveRequestBuilderGetQueryParameters } -// FileStorageContainersItemDriveRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRequestBuilderPatchRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// Bundles provides operations to manage the bundles property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveBundlesRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Bundles()(*FileStorageContainersItemDriveBundlesRequestBuilder) { - return NewFileStorageContainersItemDriveBundlesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // NewFileStorageContainersItemDriveRequestBuilderInternal instantiates a new FileStorageContainersItemDriveRequestBuilder and sets the default values. func NewFileStorageContainersItemDriveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRequestBuilder) { m := &FileStorageContainersItemDriveRequestBuilder{ @@ -59,32 +40,6 @@ func NewFileStorageContainersItemDriveRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewFileStorageContainersItemDriveRequestBuilderInternal(urlParams, requestAdapter) } -// CreatedByUser provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveCreatedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) CreatedByUser()(*FileStorageContainersItemDriveCreatedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveCreatedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Delete delete navigation property drive for storage -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Following provides operations to manage the following property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveFollowingRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Following()(*FileStorageContainersItemDriveFollowingRequestBuilder) { - return NewFileStorageContainersItemDriveFollowingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} // Get the drive of the resource fileStorageContainer. Read-only. // returns a Driveable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -105,77 +60,6 @@ func (m *FileStorageContainersItemDriveRequestBuilder) Get(ctx context.Context, } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable), nil } -// Items provides operations to manage the items property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveItemsRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Items()(*FileStorageContainersItemDriveItemsRequestBuilder) { - return NewFileStorageContainersItemDriveItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// LastModifiedByUser provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity. -// returns a *FileStorageContainersItemDriveLastModifiedByUserRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) LastModifiedByUser()(*FileStorageContainersItemDriveLastModifiedByUserRequestBuilder) { - return NewFileStorageContainersItemDriveLastModifiedByUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// List provides operations to manage the list property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveListRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) List()(*FileStorageContainersItemDriveListRequestBuilder) { - return NewFileStorageContainersItemDriveListRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Patch update the navigation property drive in storage -// returns a Driveable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, requestConfiguration *FileStorageContainersItemDriveRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, error) { - requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable), nil -} -// Recent provides operations to call the recent method. -// returns a *FileStorageContainersItemDriveRecentRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Recent()(*FileStorageContainersItemDriveRecentRequestBuilder) { - return NewFileStorageContainersItemDriveRecentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Root provides operations to manage the root property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveRootRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Root()(*FileStorageContainersItemDriveRootRequestBuilder) { - return NewFileStorageContainersItemDriveRootRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// SearchWithQ provides operations to call the search method. -// returns a *FileStorageContainersItemDriveSearchWithQRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) SearchWithQ(q *string)(*FileStorageContainersItemDriveSearchWithQRequestBuilder) { - return NewFileStorageContainersItemDriveSearchWithQRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, q) -} -// SharedWithMe provides operations to call the sharedWithMe method. -// returns a *FileStorageContainersItemDriveSharedWithMeRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) SharedWithMe()(*FileStorageContainersItemDriveSharedWithMeRequestBuilder) { - return NewFileStorageContainersItemDriveSharedWithMeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Special provides operations to manage the special property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveSpecialRequestBuilder when successful -func (m *FileStorageContainersItemDriveRequestBuilder) Special()(*FileStorageContainersItemDriveSpecialRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// ToDeleteRequestInformation delete navigation property drive for storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} // ToGetRequestInformation the drive of the resource fileStorageContainer. Read-only. // returns a *RequestInformation when successful func (m *FileStorageContainersItemDriveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -190,21 +74,6 @@ func (m *FileStorageContainersItemDriveRequestBuilder) ToGetRequestInformation(c requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the navigation property drive in storage -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Driveable, requestConfiguration *FileStorageContainersItemDriveRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) - if err != nil { - return nil, err - } - return requestInfo, nil -} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *FileStorageContainersItemDriveRequestBuilder when successful func (m *FileStorageContainersItemDriveRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveRequestBuilder) { diff --git a/storage/file_storage_containers_item_drive_root_content_request_builder.go b/storage/file_storage_containers_item_drive_root_content_request_builder.go deleted file mode 100644 index 76556f2602..0000000000 --- a/storage/file_storage_containers_item_drive_root_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveRootContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveRootContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveRootContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRootContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveRootContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveRootContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveRootContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRootContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveRootContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveRootContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRootContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveRootContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveRootContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRootContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRootContentRequestBuilder) { - m := &FileStorageContainersItemDriveRootContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveRootContentRequestBuilder instantiates a new FileStorageContainersItemDriveRootContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRootContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRootContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveRootContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveRootContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveRootContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveRootContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveRootContentRequestBuilder) { - return NewFileStorageContainersItemDriveRootContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_root_request_builder.go b/storage/file_storage_containers_item_drive_root_request_builder.go deleted file mode 100644 index 6fb164605d..0000000000 --- a/storage/file_storage_containers_item_drive_root_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveRootRequestBuilder provides operations to manage the root property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveRootRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveRootRequestBuilderGetQueryParameters the root folder of the drive. Read-only. -type FileStorageContainersItemDriveRootRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveRootRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveRootRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveRootRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveRootRequestBuilderInternal instantiates a new FileStorageContainersItemDriveRootRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRootRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRootRequestBuilder) { - m := &FileStorageContainersItemDriveRootRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/root{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveRootRequestBuilder instantiates a new FileStorageContainersItemDriveRootRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveRootRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveRootRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveRootRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveRootContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveRootRequestBuilder) Content()(*FileStorageContainersItemDriveRootContentRequestBuilder) { - return NewFileStorageContainersItemDriveRootContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get the root folder of the drive. Read-only. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveRootRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation the root folder of the drive. Read-only. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveRootRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveRootRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveRootRequestBuilder when successful -func (m *FileStorageContainersItemDriveRootRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveRootRequestBuilder) { - return NewFileStorageContainersItemDriveRootRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_search_with_q_get_response.go b/storage/file_storage_containers_item_drive_search_with_q_get_response.go deleted file mode 100644 index 8a86448265..0000000000 --- a/storage/file_storage_containers_item_drive_search_with_q_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveSearchWithQGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveSearchWithQGetResponse instantiates a new FileStorageContainersItemDriveSearchWithQGetResponse and sets the default values. -func NewFileStorageContainersItemDriveSearchWithQGetResponse()(*FileStorageContainersItemDriveSearchWithQGetResponse) { - m := &FileStorageContainersItemDriveSearchWithQGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveSearchWithQGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveSearchWithQGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveSearchWithQGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveSearchWithQGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveSearchWithQGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveSearchWithQGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveSearchWithQGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveSearchWithQGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_search_with_q_request_builder.go b/storage/file_storage_containers_item_drive_search_with_q_request_builder.go deleted file mode 100644 index 92c8c3b33b..0000000000 --- a/storage/file_storage_containers_item_drive_search_with_q_request_builder.go +++ /dev/null @@ -1,122 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSearchWithQRequestBuilder provides operations to call the search method. -type FileStorageContainersItemDriveSearchWithQRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSearchWithQRequestBuilderGetQueryParameters search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -type FileStorageContainersItemDriveSearchWithQRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveSearchWithQRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSearchWithQRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSearchWithQRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveSearchWithQRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSearchWithQRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSearchWithQRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, q *string)(*FileStorageContainersItemDriveSearchWithQRequestBuilder) { - m := &FileStorageContainersItemDriveSearchWithQRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/search(q='{q}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - if q != nil { - m.BaseRequestBuilder.PathParameters["q"] = *q - } - return m -} -// NewFileStorageContainersItemDriveSearchWithQRequestBuilder instantiates a new FileStorageContainersItemDriveSearchWithQRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSearchWithQRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSearchWithQRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSearchWithQRequestBuilderInternal(urlParams, requestAdapter, nil) -} -// Get search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// Deprecated: This method is obsolete. Use GetAsSearchWithQGetResponse instead. -// returns a FileStorageContainersItemDriveSearchWithQResponseable 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/driveitem-search?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveSearchWithQRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSearchWithQRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveSearchWithQResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveSearchWithQResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveSearchWithQResponseable), nil -} -// GetAsSearchWithQGetResponse search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// returns a FileStorageContainersItemDriveSearchWithQGetResponseable 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/driveitem-search?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveSearchWithQRequestBuilder) GetAsSearchWithQGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSearchWithQRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveSearchWithQGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveSearchWithQGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveSearchWithQGetResponseable), nil -} -// ToGetRequestInformation search the hierarchy of items for items matching a query.You can search within a folder hierarchy, a whole drive, or files shared with the current user. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSearchWithQRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSearchWithQRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSearchWithQRequestBuilder when successful -func (m *FileStorageContainersItemDriveSearchWithQRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSearchWithQRequestBuilder) { - return NewFileStorageContainersItemDriveSearchWithQRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_search_with_q_response.go b/storage/file_storage_containers_item_drive_search_with_q_response.go deleted file mode 100644 index 4cd2e38cc7..0000000000 --- a/storage/file_storage_containers_item_drive_search_with_q_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveSearchWithQGetResponseable instead. -type FileStorageContainersItemDriveSearchWithQResponse struct { - FileStorageContainersItemDriveSearchWithQGetResponse -} -// NewFileStorageContainersItemDriveSearchWithQResponse instantiates a new FileStorageContainersItemDriveSearchWithQResponse and sets the default values. -func NewFileStorageContainersItemDriveSearchWithQResponse()(*FileStorageContainersItemDriveSearchWithQResponse) { - m := &FileStorageContainersItemDriveSearchWithQResponse{ - FileStorageContainersItemDriveSearchWithQGetResponse: *NewFileStorageContainersItemDriveSearchWithQGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveSearchWithQResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveSearchWithQResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveSearchWithQResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveSearchWithQGetResponseable instead. -type FileStorageContainersItemDriveSearchWithQResponseable interface { - FileStorageContainersItemDriveSearchWithQGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_shared_with_me_get_response.go b/storage/file_storage_containers_item_drive_shared_with_me_get_response.go deleted file mode 100644 index 635dbd65f4..0000000000 --- a/storage/file_storage_containers_item_drive_shared_with_me_get_response.go +++ /dev/null @@ -1,89 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" -) - -type FileStorageContainersItemDriveSharedWithMeGetResponse struct { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse -} -// NewFileStorageContainersItemDriveSharedWithMeGetResponse instantiates a new FileStorageContainersItemDriveSharedWithMeGetResponse and sets the default values. -func NewFileStorageContainersItemDriveSharedWithMeGetResponse()(*FileStorageContainersItemDriveSharedWithMeGetResponse) { - m := &FileStorageContainersItemDriveSharedWithMeGetResponse{ - BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveSharedWithMeGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveSharedWithMeGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveSharedWithMeGetResponse(), nil -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *FileStorageContainersItemDriveSharedWithMeGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() - res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - } - m.SetValue(res) - } - return nil - } - return res -} -// GetValue gets the value property value. The value property -// returns a []DriveItemable when successful -func (m *FileStorageContainersItemDriveSharedWithMeGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) { - val, err := m.GetBackingStore().Get("value") - if err != nil { - panic(err) - } - if val != nil { - return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - } - return nil -} -// Serialize serializes information the current object -func (m *FileStorageContainersItemDriveSharedWithMeGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - err := m.BaseCollectionPaginationCountResponse.Serialize(writer) - if err != nil { - return err - } - if m.GetValue() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) - for i, v := range m.GetValue() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err = writer.WriteCollectionOfObjectValues("value", cast) - if err != nil { - return err - } - } - return nil -} -// SetValue sets the value property value. The value property -func (m *FileStorageContainersItemDriveSharedWithMeGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() { - err := m.GetBackingStore().Set("value", value) - if err != nil { - panic(err) - } -} -type FileStorageContainersItemDriveSharedWithMeGetResponseable interface { - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable) - SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable)() -} diff --git a/storage/file_storage_containers_item_drive_shared_with_me_request_builder.go b/storage/file_storage_containers_item_drive_shared_with_me_request_builder.go deleted file mode 100644 index c6a0be88c3..0000000000 --- a/storage/file_storage_containers_item_drive_shared_with_me_request_builder.go +++ /dev/null @@ -1,119 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSharedWithMeRequestBuilder provides operations to call the sharedWithMe method. -type FileStorageContainersItemDriveSharedWithMeRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSharedWithMeRequestBuilderGetQueryParameters get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. -type FileStorageContainersItemDriveSharedWithMeRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveSharedWithMeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSharedWithMeRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSharedWithMeRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveSharedWithMeRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSharedWithMeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSharedWithMeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSharedWithMeRequestBuilder) { - m := &FileStorageContainersItemDriveSharedWithMeRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/sharedWithMe(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveSharedWithMeRequestBuilder instantiates a new FileStorageContainersItemDriveSharedWithMeRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSharedWithMeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSharedWithMeRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSharedWithMeRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. -// Deprecated: This method is obsolete. Use GetAsSharedWithMeGetResponse instead. -// returns a FileStorageContainersItemDriveSharedWithMeResponseable 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/drive-sharedwithme?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveSharedWithMeRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSharedWithMeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveSharedWithMeResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveSharedWithMeResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveSharedWithMeResponseable), nil -} -// GetAsSharedWithMeGetResponse get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. -// returns a FileStorageContainersItemDriveSharedWithMeGetResponseable 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/drive-sharedwithme?view=graph-rest-1.0 -func (m *FileStorageContainersItemDriveSharedWithMeRequestBuilder) GetAsSharedWithMeGetResponse(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSharedWithMeRequestBuilderGetRequestConfiguration)(FileStorageContainersItemDriveSharedWithMeGetResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateFileStorageContainersItemDriveSharedWithMeGetResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(FileStorageContainersItemDriveSharedWithMeGetResponseable), nil -} -// ToGetRequestInformation get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSharedWithMeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSharedWithMeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSharedWithMeRequestBuilder when successful -func (m *FileStorageContainersItemDriveSharedWithMeRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSharedWithMeRequestBuilder) { - return NewFileStorageContainersItemDriveSharedWithMeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_shared_with_me_response.go b/storage/file_storage_containers_item_drive_shared_with_me_response.go deleted file mode 100644 index 37241d60d0..0000000000 --- a/storage/file_storage_containers_item_drive_shared_with_me_response.go +++ /dev/null @@ -1,27 +0,0 @@ -package storage - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveSharedWithMeGetResponseable instead. -type FileStorageContainersItemDriveSharedWithMeResponse struct { - FileStorageContainersItemDriveSharedWithMeGetResponse -} -// NewFileStorageContainersItemDriveSharedWithMeResponse instantiates a new FileStorageContainersItemDriveSharedWithMeResponse and sets the default values. -func NewFileStorageContainersItemDriveSharedWithMeResponse()(*FileStorageContainersItemDriveSharedWithMeResponse) { - m := &FileStorageContainersItemDriveSharedWithMeResponse{ - FileStorageContainersItemDriveSharedWithMeGetResponse: *NewFileStorageContainersItemDriveSharedWithMeGetResponse(), - } - return m -} -// CreateFileStorageContainersItemDriveSharedWithMeResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateFileStorageContainersItemDriveSharedWithMeResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewFileStorageContainersItemDriveSharedWithMeResponse(), nil -} -// Deprecated: This class is obsolete. Use FileStorageContainersItemDriveSharedWithMeGetResponseable instead. -type FileStorageContainersItemDriveSharedWithMeResponseable interface { - FileStorageContainersItemDriveSharedWithMeGetResponseable - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable -} diff --git a/storage/file_storage_containers_item_drive_special_count_request_builder.go b/storage/file_storage_containers_item_drive_special_count_request_builder.go deleted file mode 100644 index 6bac81409e..0000000000 --- a/storage/file_storage_containers_item_drive_special_count_request_builder.go +++ /dev/null @@ -1,80 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSpecialCountRequestBuilder provides operations to count the resources in the collection. -type FileStorageContainersItemDriveSpecialCountRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSpecialCountRequestBuilderGetQueryParameters get the number of the resource -type FileStorageContainersItemDriveSpecialCountRequestBuilderGetQueryParameters struct { - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` -} -// FileStorageContainersItemDriveSpecialCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialCountRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSpecialCountRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveSpecialCountRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSpecialCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialCountRequestBuilder) { - m := &FileStorageContainersItemDriveSpecialCountRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/$count{?%24filter,%24search}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveSpecialCountRequestBuilder instantiates a new FileStorageContainersItemDriveSpecialCountRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialCountRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSpecialCountRequestBuilderInternal(urlParams, requestAdapter) -} -// Get get the number of the resource -// returns a *int32 when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialCountRequestBuilderGetRequestConfiguration)(*int32, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(*int32), nil -} -// ToGetRequestInformation get the number of the resource -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSpecialCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSpecialCountRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_special_drive_item_item_request_builder.go b/storage/file_storage_containers_item_drive_special_drive_item_item_request_builder.go deleted file mode 100644 index 4d715d3737..0000000000 --- a/storage/file_storage_containers_item_drive_special_drive_item_item_request_builder.go +++ /dev/null @@ -1,86 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder provides operations to manage the special property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetQueryParameters collection of common folders available in OneDrive. Read-only. Nullable. -type FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetQueryParameters struct { - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` -} -// FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetQueryParameters -} -// NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) { - m := &FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}{?%24expand,%24select}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder instantiates a new FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderInternal(urlParams, requestAdapter) -} -// Content provides operations to manage the media for the storage entity. -// returns a *FileStorageContainersItemDriveSpecialItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) Content()(*FileStorageContainersItemDriveSpecialItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of common folders available in OneDrive. Read-only. Nullable. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToGetRequestInformation collection of common folders available in OneDrive. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_special_item_content_request_builder.go b/storage/file_storage_containers_item_drive_special_item_content_request_builder.go deleted file mode 100644 index 3d688493cf..0000000000 --- a/storage/file_storage_containers_item_drive_special_item_content_request_builder.go +++ /dev/null @@ -1,152 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSpecialItemContentRequestBuilder provides operations to manage the media for the storage entity. -type FileStorageContainersItemDriveSpecialItemContentRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSpecialItemContentRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialItemContentRequestBuilderDeleteRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetQueryParameters the content stream, if the item represents a file. -type FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetQueryParameters struct { - // Format of the content - Format *string `uriparametername:"%24format"` -} -// FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetQueryParameters -} -// FileStorageContainersItemDriveSpecialItemContentRequestBuilderPutRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialItemContentRequestBuilderPutRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption -} -// NewFileStorageContainersItemDriveSpecialItemContentRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSpecialItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialItemContentRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialItemContentRequestBuilder) { - m := &FileStorageContainersItemDriveSpecialItemContentRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special/{driveItem%2Did}/content{?%24format*}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveSpecialItemContentRequestBuilder instantiates a new FileStorageContainersItemDriveSpecialItemContentRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialItemContentRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialItemContentRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSpecialItemContentRequestBuilderInternal(urlParams, requestAdapter) -} -// Delete the content stream, if the item represents a file. -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderDeleteRequestConfiguration)(error) { - requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); - if err != nil { - return err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) - if err != nil { - return err - } - return nil -} -// Get the content stream, if the item represents a file. -// returns a []byte when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "[]byte", errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.([]byte), nil -} -// Put the content stream, if the item represents a file. -// returns a DriveItemable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderPutRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable, error) { - requestInfo, err := m.ToPutRequestInformation(ctx, body, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemable), nil -} -// ToDeleteRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// ToGetRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json") - return requestInfo, nil -} -// ToPutRequestInformation the content stream, if the item represents a file. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *FileStorageContainersItemDriveSpecialItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - requestInfo.SetStreamContentAndContentType(body, "application/octet-stream") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSpecialItemContentRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialItemContentRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSpecialItemContentRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_drive_special_request_builder.go b/storage/file_storage_containers_item_drive_special_request_builder.go deleted file mode 100644 index cb71e59b8c..0000000000 --- a/storage/file_storage_containers_item_drive_special_request_builder.go +++ /dev/null @@ -1,110 +0,0 @@ -package storage - -import ( - "context" - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" - iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" - ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" -) - -// FileStorageContainersItemDriveSpecialRequestBuilder provides operations to manage the special property of the microsoft.graph.drive entity. -type FileStorageContainersItemDriveSpecialRequestBuilder struct { - i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder -} -// FileStorageContainersItemDriveSpecialRequestBuilderGetQueryParameters collection of common folders available in OneDrive. Read-only. Nullable. -type FileStorageContainersItemDriveSpecialRequestBuilderGetQueryParameters struct { - // Include count of items - Count *bool `uriparametername:"%24count"` - // Expand related entities - Expand []string `uriparametername:"%24expand"` - // Filter items by property values - Filter *string `uriparametername:"%24filter"` - // Order items by property values - Orderby []string `uriparametername:"%24orderby"` - // Search items by search phrases - Search *string `uriparametername:"%24search"` - // Select properties to be returned - Select []string `uriparametername:"%24select"` - // Skip the first n items - Skip *int32 `uriparametername:"%24skip"` - // Show only the first n items - Top *int32 `uriparametername:"%24top"` -} -// FileStorageContainersItemDriveSpecialRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. -type FileStorageContainersItemDriveSpecialRequestBuilderGetRequestConfiguration struct { - // Request headers - Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders - // Request options - Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption - // Request query parameters - QueryParameters *FileStorageContainersItemDriveSpecialRequestBuilderGetQueryParameters -} -// ByDriveItemId provides operations to manage the special property of the microsoft.graph.drive entity. -// returns a *FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialRequestBuilder) ByDriveItemId(driveItemId string)(*FileStorageContainersItemDriveSpecialDriveItemItemRequestBuilder) { - urlTplParams := make(map[string]string) - for idx, item := range m.BaseRequestBuilder.PathParameters { - urlTplParams[idx] = item - } - if driveItemId != "" { - urlTplParams["driveItem%2Did"] = driveItemId - } - return NewFileStorageContainersItemDriveSpecialDriveItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) -} -// NewFileStorageContainersItemDriveSpecialRequestBuilderInternal instantiates a new FileStorageContainersItemDriveSpecialRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialRequestBuilder) { - m := &FileStorageContainersItemDriveSpecialRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/drive/special{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), - } - return m -} -// NewFileStorageContainersItemDriveSpecialRequestBuilder instantiates a new FileStorageContainersItemDriveSpecialRequestBuilder and sets the default values. -func NewFileStorageContainersItemDriveSpecialRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemDriveSpecialRequestBuilder) { - urlParams := make(map[string]string) - urlParams["request-raw-url"] = rawUrl - return NewFileStorageContainersItemDriveSpecialRequestBuilderInternal(urlParams, requestAdapter) -} -// Count provides operations to count the resources in the collection. -// returns a *FileStorageContainersItemDriveSpecialCountRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialRequestBuilder) Count()(*FileStorageContainersItemDriveSpecialCountRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) -} -// Get collection of common folders available in OneDrive. Read-only. Nullable. -// returns a DriveItemCollectionResponseable when successful -// returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *FileStorageContainersItemDriveSpecialRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable, error) { - requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); - if err != nil { - return nil, err - } - errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { - "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, - } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateDriveItemCollectionResponseFromDiscriminatorValue, errorMapping) - if err != nil { - return nil, err - } - if res == nil { - return nil, nil - } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DriveItemCollectionResponseable), nil -} -// ToGetRequestInformation collection of common folders available in OneDrive. Read-only. Nullable. -// returns a *RequestInformation when successful -func (m *FileStorageContainersItemDriveSpecialRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemDriveSpecialRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { - requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) - if requestConfiguration != nil { - if requestConfiguration.QueryParameters != nil { - requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) - } - requestInfo.Headers.AddAll(requestConfiguration.Headers) - requestInfo.AddRequestOptions(requestConfiguration.Options) - } - requestInfo.Headers.TryAdd("Accept", "application/json") - return requestInfo, nil -} -// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// returns a *FileStorageContainersItemDriveSpecialRequestBuilder when successful -func (m *FileStorageContainersItemDriveSpecialRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemDriveSpecialRequestBuilder) { - return NewFileStorageContainersItemDriveSpecialRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); -} diff --git a/storage/file_storage_containers_item_permanent_delete_request_builder.go b/storage/file_storage_containers_item_permanent_delete_request_builder.go new file mode 100644 index 0000000000..734615ca13 --- /dev/null +++ b/storage/file_storage_containers_item_permanent_delete_request_builder.go @@ -0,0 +1,64 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// FileStorageContainersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type FileStorageContainersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// FileStorageContainersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type FileStorageContainersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewFileStorageContainersItemPermanentDeleteRequestBuilderInternal instantiates a new FileStorageContainersItemPermanentDeleteRequestBuilder and sets the default values. +func NewFileStorageContainersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemPermanentDeleteRequestBuilder) { + m := &FileStorageContainersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/fileStorage/containers/{fileStorageContainer%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewFileStorageContainersItemPermanentDeleteRequestBuilder instantiates a new FileStorageContainersItemPermanentDeleteRequestBuilder and sets the default values. +func NewFileStorageContainersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*FileStorageContainersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewFileStorageContainersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action permanentDelete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *FileStorageContainersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *FileStorageContainersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action permanentDelete +// returns a *RequestInformation when successful +func (m *FileStorageContainersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *FileStorageContainersItemPermanentDeleteRequestBuilder when successful +func (m *FileStorageContainersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemPermanentDeleteRequestBuilder) { + return NewFileStorageContainersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/settings_quota_request_builder.go b/storage/settings_quota_request_builder.go new file mode 100644 index 0000000000..1790ff0e9e --- /dev/null +++ b/storage/settings_quota_request_builder.go @@ -0,0 +1,162 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// SettingsQuotaRequestBuilder provides operations to manage the quota property of the microsoft.graph.storageSettings entity. +type SettingsQuotaRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SettingsQuotaRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SettingsQuotaRequestBuilderGetQueryParameters get quota from storage +type SettingsQuotaRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SettingsQuotaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SettingsQuotaRequestBuilderGetQueryParameters +} +// SettingsQuotaRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSettingsQuotaRequestBuilderInternal instantiates a new SettingsQuotaRequestBuilder and sets the default values. +func NewSettingsQuotaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaRequestBuilder) { + m := &SettingsQuotaRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/settings/quota{?%24expand,%24select}", pathParameters), + } + return m +} +// NewSettingsQuotaRequestBuilder instantiates a new SettingsQuotaRequestBuilder and sets the default values. +func NewSettingsQuotaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSettingsQuotaRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property quota for storage +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaRequestBuilder) Delete(ctx context.Context, requestConfiguration *SettingsQuotaRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get quota from storage +// returns a UnifiedStorageQuotaable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsQuotaRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUnifiedStorageQuotaFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable), nil +} +// Patch update the navigation property quota in storage +// returns a UnifiedStorageQuotaable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, requestConfiguration *SettingsQuotaRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUnifiedStorageQuotaFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable), nil +} +// Services provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +// returns a *SettingsQuotaServicesRequestBuilder when successful +func (m *SettingsQuotaRequestBuilder) Services()(*SettingsQuotaServicesRequestBuilder) { + return NewSettingsQuotaServicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property quota for storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get quota from storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property quota in storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, requestConfiguration *SettingsQuotaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SettingsQuotaRequestBuilder when successful +func (m *SettingsQuotaRequestBuilder) WithUrl(rawUrl string)(*SettingsQuotaRequestBuilder) { + return NewSettingsQuotaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/settings_quota_services_count_request_builder.go b/storage/settings_quota_services_count_request_builder.go new file mode 100644 index 0000000000..59fdeb2814 --- /dev/null +++ b/storage/settings_quota_services_count_request_builder.go @@ -0,0 +1,80 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// SettingsQuotaServicesCountRequestBuilder provides operations to count the resources in the collection. +type SettingsQuotaServicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SettingsQuotaServicesCountRequestBuilderGetQueryParameters get the number of the resource +type SettingsQuotaServicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// SettingsQuotaServicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SettingsQuotaServicesCountRequestBuilderGetQueryParameters +} +// NewSettingsQuotaServicesCountRequestBuilderInternal instantiates a new SettingsQuotaServicesCountRequestBuilder and sets the default values. +func NewSettingsQuotaServicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesCountRequestBuilder) { + m := &SettingsQuotaServicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/settings/quota/services/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewSettingsQuotaServicesCountRequestBuilder instantiates a new SettingsQuotaServicesCountRequestBuilder and sets the default values. +func NewSettingsQuotaServicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSettingsQuotaServicesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsQuotaServicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaServicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SettingsQuotaServicesCountRequestBuilder when successful +func (m *SettingsQuotaServicesCountRequestBuilder) WithUrl(rawUrl string)(*SettingsQuotaServicesCountRequestBuilder) { + return NewSettingsQuotaServicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/settings_quota_services_request_builder.go b/storage/settings_quota_services_request_builder.go new file mode 100644 index 0000000000..1e8d42c5a0 --- /dev/null +++ b/storage/settings_quota_services_request_builder.go @@ -0,0 +1,152 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// SettingsQuotaServicesRequestBuilder provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +type SettingsQuotaServicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SettingsQuotaServicesRequestBuilderGetQueryParameters get services from storage +type SettingsQuotaServicesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// SettingsQuotaServicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SettingsQuotaServicesRequestBuilderGetQueryParameters +} +// SettingsQuotaServicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByServiceStorageQuotaBreakdownId provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +// returns a *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder when successful +func (m *SettingsQuotaServicesRequestBuilder) ByServiceStorageQuotaBreakdownId(serviceStorageQuotaBreakdownId string)(*SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if serviceStorageQuotaBreakdownId != "" { + urlTplParams["serviceStorageQuotaBreakdown%2Did"] = serviceStorageQuotaBreakdownId + } + return NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewSettingsQuotaServicesRequestBuilderInternal instantiates a new SettingsQuotaServicesRequestBuilder and sets the default values. +func NewSettingsQuotaServicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesRequestBuilder) { + m := &SettingsQuotaServicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/settings/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewSettingsQuotaServicesRequestBuilder instantiates a new SettingsQuotaServicesRequestBuilder and sets the default values. +func NewSettingsQuotaServicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSettingsQuotaServicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *SettingsQuotaServicesCountRequestBuilder when successful +func (m *SettingsQuotaServicesRequestBuilder) Count()(*SettingsQuotaServicesCountRequestBuilder) { + return NewSettingsQuotaServicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get services from storage +// returns a ServiceStorageQuotaBreakdownCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsQuotaServicesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownCollectionResponseable), nil +} +// Post create new navigation property to services for storage +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *SettingsQuotaServicesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// ToGetRequestInformation get services from storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaServicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to services for storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *SettingsQuotaServicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SettingsQuotaServicesRequestBuilder when successful +func (m *SettingsQuotaServicesRequestBuilder) WithUrl(rawUrl string)(*SettingsQuotaServicesRequestBuilder) { + return NewSettingsQuotaServicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/settings_quota_services_service_storage_quota_breakdown_item_request_builder.go b/storage/settings_quota_services_service_storage_quota_breakdown_item_request_builder.go new file mode 100644 index 0000000000..0ad4bc6a54 --- /dev/null +++ b/storage/settings_quota_services_service_storage_quota_breakdown_item_request_builder.go @@ -0,0 +1,157 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +type SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters get services from storage +type SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters +} +// SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal instantiates a new SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder and sets the default values. +func NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + m := &SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/settings/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder instantiates a new SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder and sets the default values. +func NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property services for storage +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get services from storage +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// Patch update the navigation property services in storage +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// ToDeleteRequestInformation delete navigation property services for storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get services from storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property services in storage +// returns a *RequestInformation when successful +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder when successful +func (m *SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) WithUrl(rawUrl string)(*SettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + return NewSettingsQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/settings_request_builder.go b/storage/settings_request_builder.go new file mode 100644 index 0000000000..9bf8716ffc --- /dev/null +++ b/storage/settings_request_builder.go @@ -0,0 +1,162 @@ +package storage + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// SettingsRequestBuilder provides operations to manage the settings property of the microsoft.graph.storage entity. +type SettingsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// SettingsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// SettingsRequestBuilderGetQueryParameters get settings from storage +type SettingsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// SettingsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *SettingsRequestBuilderGetQueryParameters +} +// SettingsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type SettingsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewSettingsRequestBuilderInternal instantiates a new SettingsRequestBuilder and sets the default values. +func NewSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsRequestBuilder) { + m := &SettingsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/storage/settings{?%24expand,%24select}", pathParameters), + } + return m +} +// NewSettingsRequestBuilder instantiates a new SettingsRequestBuilder and sets the default values. +func NewSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*SettingsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewSettingsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property settings for storage +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *SettingsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get settings from storage +// returns a StorageSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SettingsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateStorageSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable), nil +} +// Patch update the navigation property settings in storage +// returns a StorageSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *SettingsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable, requestConfiguration *SettingsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateStorageSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable), nil +} +// Quota provides operations to manage the quota property of the microsoft.graph.storageSettings entity. +// returns a *SettingsQuotaRequestBuilder when successful +func (m *SettingsRequestBuilder) Quota()(*SettingsQuotaRequestBuilder) { + return NewSettingsQuotaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property settings for storage +// returns a *RequestInformation when successful +func (m *SettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get settings from storage +// returns a *RequestInformation when successful +func (m *SettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property settings in storage +// returns a *RequestInformation when successful +func (m *SettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.StorageSettingsable, requestConfiguration *SettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *SettingsRequestBuilder when successful +func (m *SettingsRequestBuilder) WithUrl(rawUrl string)(*SettingsRequestBuilder) { + return NewSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/storage/storage_request_builder.go b/storage/storage_request_builder.go index 755c0de623..f2320cb4e3 100644 --- a/storage/storage_request_builder.go +++ b/storage/storage_request_builder.go @@ -92,6 +92,11 @@ func (m *StorageRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Storageable), nil } +// Settings provides operations to manage the settings property of the microsoft.graph.storage entity. +// returns a *SettingsRequestBuilder when successful +func (m *StorageRequestBuilder) Settings()(*SettingsRequestBuilder) { + return NewSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation get storage // returns a *RequestInformation when successful func (m *StorageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *StorageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/teams/item_channels_channel_item_request_builder.go b/teams/item_channels_channel_item_request_builder.go index 8e51667190..4319585472 100644 --- a/teams/item_channels_channel_item_request_builder.go +++ b/teams/item_channels_channel_item_request_builder.go @@ -41,6 +41,11 @@ type ItemChannelsChannelItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemChannelsItemArchiveRequestBuilder when successful +func (m *ItemChannelsChannelItemRequestBuilder) Archive()(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemChannelsItemCompleteMigrationRequestBuilder when successful func (m *ItemChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemChannelsItemCompleteMigrationRequestBuilder) { @@ -204,6 +209,11 @@ func (m *ItemChannelsChannelItemRequestBuilder) ToPatchRequestInformation(ctx co } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemChannelsChannelItemRequestBuilder) Unarchive()(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemChannelsChannelItemRequestBuilder when successful func (m *ItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsChannelItemRequestBuilder) { diff --git a/teams/item_channels_get_all_retained_messages_get_response.go b/teams/item_channels_get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..bedb4d2ab2 --- /dev/null +++ b/teams/item_channels_get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type ItemChannelsGetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewItemChannelsGetAllRetainedMessagesGetResponse instantiates a new ItemChannelsGetAllRetainedMessagesGetResponse and sets the default values. +func NewItemChannelsGetAllRetainedMessagesGetResponse()(*ItemChannelsGetAllRetainedMessagesGetResponse) { + m := &ItemChannelsGetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsGetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *ItemChannelsGetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsGetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemChannelsGetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemChannelsGetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/teams/item_channels_get_all_retained_messages_request_builder.go b/teams/item_channels_get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..11b7e771dc --- /dev/null +++ b/teams/item_channels_get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemChannelsGetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type ItemChannelsGetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type ItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewItemChannelsGetAllRetainedMessagesRequestBuilderInternal instantiates a new ItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemChannelsGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsGetAllRetainedMessagesRequestBuilder) { + m := &ItemChannelsGetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemChannelsGetAllRetainedMessagesRequestBuilder instantiates a new ItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsGetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a ItemChannelsGetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemChannelsGetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsGetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a ItemChannelsGetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChannelsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *ItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemChannelsGetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChannelsGetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *ItemChannelsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemChannelsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_get_all_retained_messages_response.go b/teams/item_channels_get_all_retained_messages_response.go new file mode 100644 index 0000000000..df50b50398 --- /dev/null +++ b/teams/item_channels_get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemChannelsGetAllRetainedMessagesResponse struct { + ItemChannelsGetAllRetainedMessagesGetResponse +} +// NewItemChannelsGetAllRetainedMessagesResponse instantiates a new ItemChannelsGetAllRetainedMessagesResponse and sets the default values. +func NewItemChannelsGetAllRetainedMessagesResponse()(*ItemChannelsGetAllRetainedMessagesResponse) { + m := &ItemChannelsGetAllRetainedMessagesResponse{ + ItemChannelsGetAllRetainedMessagesGetResponse: *NewItemChannelsGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemChannelsGetAllRetainedMessagesResponseable interface { + ItemChannelsGetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teams/item_channels_item_archive_post_request_body.go b/teams/item_channels_item_archive_post_request_body.go new file mode 100644 index 0000000000..db482cdf74 --- /dev/null +++ b/teams/item_channels_item_archive_post_request_body.go @@ -0,0 +1,113 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemChannelsItemArchivePostRequestBody instantiates a new ItemChannelsItemArchivePostRequestBody and sets the default values. +func NewItemChannelsItemArchivePostRequestBody()(*ItemChannelsItemArchivePostRequestBody) { + m := &ItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_channels_item_archive_request_builder.go b/teams/item_channels_item_archive_request_builder.go new file mode 100644 index 0000000000..e32eee7bfe --- /dev/null +++ b/teams/item_channels_item_archive_request_builder.go @@ -0,0 +1,71 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemArchiveRequestBuilderInternal instantiates a new ItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + m := &ItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemChannelsItemArchiveRequestBuilder instantiates a new ItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemArchiveRequestBuilder when successful +func (m *ItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemArchiveRequestBuilder) { + return NewItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_item_members_conversation_member_item_request_builder.go b/teams/item_channels_item_members_conversation_member_item_request_builder.go index 3a1ee4dc79..ae2ecb4325 100644 --- a/teams/item_channels_item_members_conversation_member_item_request_builder.go +++ b/teams/item_channels_item_members_conversation_member_item_request_builder.go @@ -54,11 +54,11 @@ func NewItemChannelsItemMembersConversationMemberItemRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemChannelsItemMembersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// Delete delete a conversationMember from a channel. // 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/channel-delete-members?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-delete?view=graph-rest-1.0 func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) Patch(ctx } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationMemberable), nil } -// ToDeleteRequestInformation delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared. +// ToDeleteRequestInformation delete a conversationMember from a channel. // returns a *RequestInformation when successful func (m *ItemChannelsItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_channels_item_unarchive_request_builder.go b/teams/item_channels_item_unarchive_request_builder.go new file mode 100644 index 0000000000..89dfe96e44 --- /dev/null +++ b/teams/item_channels_item_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new ItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + m := &ItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemChannelsItemUnarchiveRequestBuilder instantiates a new ItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemChannelsItemUnarchiveRequestBuilder) { + return NewItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_channels_request_builder.go b/teams/item_channels_request_builder.go index 944a24fc28..c82b2df885 100644 --- a/teams/item_channels_request_builder.go +++ b/teams/item_channels_request_builder.go @@ -104,6 +104,11 @@ func (m *ItemChannelsRequestBuilder) Get(ctx context.Context, requestConfigurati func (m *ItemChannelsRequestBuilder) GetAllMessages()(*ItemChannelsGetAllMessagesRequestBuilder) { return NewItemChannelsGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *ItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemChannelsRequestBuilder) GetAllRetainedMessages()(*ItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create a new channel in a team, as specified in the request body. When you create a channel, the maximum length of the channel's displayName is 50 characters. This is the name that appears to the user in Microsoft Teams. If you're creating a private channel, you can add a maximum of 200 members. // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/teams/item_primary_channel_archive_post_request_body.go b/teams/item_primary_channel_archive_post_request_body.go new file mode 100644 index 0000000000..6f61c47ff7 --- /dev/null +++ b/teams/item_primary_channel_archive_post_request_body.go @@ -0,0 +1,113 @@ +package teams + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemPrimaryChannelArchivePostRequestBody instantiates a new ItemPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemPrimaryChannelArchivePostRequestBody()(*ItemPrimaryChannelArchivePostRequestBody) { + m := &ItemPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teams/item_primary_channel_archive_request_builder.go b/teams/item_primary_channel_archive_request_builder.go new file mode 100644 index 0000000000..7c2f6dba20 --- /dev/null +++ b/teams/item_primary_channel_archive_request_builder.go @@ -0,0 +1,71 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelArchiveRequestBuilderInternal instantiates a new ItemPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + m := &ItemPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemPrimaryChannelArchiveRequestBuilder instantiates a new ItemPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teams/item_primary_channel_request_builder.go b/teams/item_primary_channel_request_builder.go index c43fe303b8..567b0a76af 100644 --- a/teams/item_primary_channel_request_builder.go +++ b/teams/item_primary_channel_request_builder.go @@ -41,6 +41,11 @@ type ItemPrimaryChannelRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemPrimaryChannelRequestBuilder) Archive()(*ItemPrimaryChannelArchiveRequestBuilder) { + return NewItemPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemPrimaryChannelCompleteMigrationRequestBuilder when successful func (m *ItemPrimaryChannelRequestBuilder) CompleteMigration()(*ItemPrimaryChannelCompleteMigrationRequestBuilder) { @@ -198,6 +203,11 @@ func (m *ItemPrimaryChannelRequestBuilder) ToPatchRequestInformation(ctx context } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemPrimaryChannelRequestBuilder) Unarchive()(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemPrimaryChannelRequestBuilder when successful func (m *ItemPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelRequestBuilder) { diff --git a/teams/item_primary_channel_unarchive_request_builder.go b/teams/item_primary_channel_unarchive_request_builder.go new file mode 100644 index 0000000000..88059a55e4 --- /dev/null +++ b/teams/item_primary_channel_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package teams + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new ItemPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemPrimaryChannelUnarchiveRequestBuilder instantiates a new ItemPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go index 7f62151d91..ab8ae96742 100644 --- a/teamwork/deleted_teams_item_channels_channel_item_request_builder.go +++ b/teamwork/deleted_teams_item_channels_channel_item_request_builder.go @@ -41,6 +41,11 @@ type DeletedTeamsItemChannelsChannelItemRequestBuilderPatchRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *DeletedTeamsItemChannelsItemArchiveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Archive()(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *DeletedTeamsItemChannelsItemCompleteMigrationRequestBuilder when successful func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) CompleteMigration()(*DeletedTeamsItemChannelsItemCompleteMigrationRequestBuilder) { @@ -195,6 +200,11 @@ func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) ToPatchRequestInform } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) Unarchive()(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *DeletedTeamsItemChannelsChannelItemRequestBuilder when successful func (m *DeletedTeamsItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsChannelItemRequestBuilder) { diff --git a/teamwork/deleted_teams_item_channels_get_all_retained_messages_get_response.go b/teamwork/deleted_teams_item_channels_get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..05fc2bb2ba --- /dev/null +++ b/teamwork/deleted_teams_item_channels_get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse instantiates a new DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse and sets the default values. +func NewDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse()(*DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse) { + m := &DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/teamwork/deleted_teams_item_channels_get_all_retained_messages_request_builder.go b/teamwork/deleted_teams_item_channels_get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..369fc9d80e --- /dev/null +++ b/teamwork/deleted_teams_item_channels_get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + m := &DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder instantiates a new DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a DeletedTeamsItemChannelsGetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(DeletedTeamsItemChannelsGetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsGetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_get_all_retained_messages_response.go b/teamwork/deleted_teams_item_channels_get_all_retained_messages_response.go new file mode 100644 index 0000000000..3c39d4b9d6 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable instead. +type DeletedTeamsItemChannelsGetAllRetainedMessagesResponse struct { + DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse +} +// NewDeletedTeamsItemChannelsGetAllRetainedMessagesResponse instantiates a new DeletedTeamsItemChannelsGetAllRetainedMessagesResponse and sets the default values. +func NewDeletedTeamsItemChannelsGetAllRetainedMessagesResponse()(*DeletedTeamsItemChannelsGetAllRetainedMessagesResponse) { + m := &DeletedTeamsItemChannelsGetAllRetainedMessagesResponse{ + DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse: *NewDeletedTeamsItemChannelsGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateDeletedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable instead. +type DeletedTeamsItemChannelsGetAllRetainedMessagesResponseable interface { + DeletedTeamsItemChannelsGetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go new file mode 100644 index 0000000000..213b02d566 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_post_request_body.go @@ -0,0 +1,113 @@ +package teamwork + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type DeletedTeamsItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewDeletedTeamsItemChannelsItemArchivePostRequestBody instantiates a new DeletedTeamsItemChannelsItemArchivePostRequestBody and sets the default values. +func NewDeletedTeamsItemChannelsItemArchivePostRequestBody()(*DeletedTeamsItemChannelsItemArchivePostRequestBody) { + m := &DeletedTeamsItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateDeletedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewDeletedTeamsItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *DeletedTeamsItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type DeletedTeamsItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/teamwork/deleted_teams_item_channels_item_archive_request_builder.go b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go new file mode 100644 index 0000000000..2cb21bfe8f --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_archive_request_builder.go @@ -0,0 +1,71 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type DeletedTeamsItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemArchiveRequestBuilder instantiates a new DeletedTeamsItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body DeletedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *DeletedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemArchiveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go new file mode 100644 index 0000000000..cfbd7ac089 --- /dev/null +++ b/teamwork/deleted_teams_item_channels_item_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package teamwork + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new DeletedTeamsItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + m := &DeletedTeamsItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder instantiates a new DeletedTeamsItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *DeletedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder when successful +func (m *DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*DeletedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewDeletedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/teamwork/deleted_teams_item_channels_request_builder.go b/teamwork/deleted_teams_item_channels_request_builder.go index 2ca9d30bd9..7c4b48f204 100644 --- a/teamwork/deleted_teams_item_channels_request_builder.go +++ b/teamwork/deleted_teams_item_channels_request_builder.go @@ -101,6 +101,11 @@ func (m *DeletedTeamsItemChannelsRequestBuilder) Get(ctx context.Context, reques func (m *DeletedTeamsItemChannelsRequestBuilder) GetAllMessages()(*DeletedTeamsItemChannelsGetAllMessagesRequestBuilder) { return NewDeletedTeamsItemChannelsGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *DeletedTeamsItemChannelsRequestBuilder) GetAllRetainedMessages()(*DeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewDeletedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to channels for teamwork // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/users/item_assign_license_request_builder.go b/users/item_assign_license_request_builder.go index 90d397316f..a50a0fd753 100644 --- a/users/item_assign_license_request_builder.go +++ b/users/item_assign_license_request_builder.go @@ -31,7 +31,7 @@ func NewItemAssignLicenseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 urlParams["request-raw-url"] = rawUrl return NewItemAssignLicenseRequestBuilderInternal(urlParams, requestAdapter) } -// Post add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. +// Post add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemAssignLicenseRequestBuilder) Post(ctx context.Context, body ItemAss } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil } -// ToPostRequestInformation add or remove subscriptions for the user. You can also enable and disable specific plans associated with a subscription. +// ToPostRequestInformation add or remove licenses for the user to enable or disable their use of Microsoft cloud offerings that the company has licenses to. For example, an organization can have a Microsoft 365 Enterprise E3 subscription with 100 licenses, and this request assigns one of those licenses to a specific user. You can also enable and disable specific plans associated with a subscription. // returns a *RequestInformation when successful func (m *ItemAssignLicenseRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemAssignLicensePostRequestBodyable, requestConfiguration *ItemAssignLicenseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_authentication_methods_item_reset_password_request_builder.go b/users/item_authentication_methods_item_reset_password_request_builder.go index 3fe2f89aac..df01809008 100644 --- a/users/item_authentication_methods_item_reset_password_request_builder.go +++ b/users/item_authentication_methods_item_reset_password_request_builder.go @@ -31,7 +31,7 @@ func NewItemAuthenticationMethodsItemResetPasswordRequestBuilder(rawUrl string, urlParams["request-raw-url"] = rawUrl return NewItemAuthenticationMethodsItemResetPasswordRequestBuilderInternal(urlParams, requestAdapter) } -// Post reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. +// Post reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. // returns a PasswordResetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -54,7 +54,7 @@ func (m *ItemAuthenticationMethodsItemResetPasswordRequestBuilder) Post(ctx cont } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.PasswordResetResponseable), nil } -// ToPostRequestInformation reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. +// ToPostRequestInformation reset a user's password, represented by a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. To reset a user's password in Azure AD B2C, use the Update user API operation and update the passwordProfile > forceChangePasswordNextSignIn object. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and returns a Location header with a link where the caller can periodically check for the status of the reset operation. // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsItemResetPasswordRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemAuthenticationMethodsItemResetPasswordPostRequestBodyable, requestConfiguration *ItemAuthenticationMethodsItemResetPasswordRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_authentication_operations_long_running_operation_item_request_builder.go b/users/item_authentication_operations_long_running_operation_item_request_builder.go index b7c1eadeb1..52a481a652 100644 --- a/users/item_authentication_operations_long_running_operation_item_request_builder.go +++ b/users/item_authentication_operations_long_running_operation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderGetQueryParameters retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderGetQueryParameters read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. type ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Del } return nil } -// Get retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// Get read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. // returns a LongRunningOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -124,7 +124,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// ToGetRequestInformation read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_authentication_operations_request_builder.go b/users/item_authentication_operations_request_builder.go index 8628c6f62b..2cc8dbbb55 100644 --- a/users/item_authentication_operations_request_builder.go +++ b/users/item_authentication_operations_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemAuthenticationOperationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemAuthenticationOperationsRequestBuilderGetQueryParameters retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// ItemAuthenticationOperationsRequestBuilderGetQueryParameters read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. type ItemAuthenticationOperationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemAuthenticationOperationsRequestBuilder(rawUrl string, requestAdapter func (m *ItemAuthenticationOperationsRequestBuilder) Count()(*ItemAuthenticationOperationsCountRequestBuilder) { return NewItemAuthenticationOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// Get read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. // returns a LongRunningOperationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.LongRunningOperationCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) Post(ctx context.Context, b } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.LongRunningOperationable), nil } -// ToGetRequestInformation retrieve the status of a long-running operation, represented by a longRunningOperation object. A long-running operation is initiated when you reset a user's password. This resource type is also the base type for the richLongRunningOperation object that represents the status of a long-running operation on a site or a list. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. +// ToGetRequestInformation read the properties and relationships of a longRunningOperation object. This API allows you to retrieve the details and status of the following long-running Microsoft Graph API operations. The possible states of the long-running operation are notStarted, running, succeeded, failed, unknownFutureValue where succeeded and failed are terminal states. // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_chats_get_all_retained_messages_get_response.go b/users/item_chats_get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..b3ee77e2ae --- /dev/null +++ b/users/item_chats_get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type ItemChatsGetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewItemChatsGetAllRetainedMessagesGetResponse instantiates a new ItemChatsGetAllRetainedMessagesGetResponse and sets the default values. +func NewItemChatsGetAllRetainedMessagesGetResponse()(*ItemChatsGetAllRetainedMessagesGetResponse) { + m := &ItemChatsGetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemChatsGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChatsGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChatsGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemChatsGetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *ItemChatsGetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemChatsGetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemChatsGetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemChatsGetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/users/item_chats_get_all_retained_messages_request_builder.go b/users/item_chats_get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..a511a5d751 --- /dev/null +++ b/users/item_chats_get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemChatsGetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type ItemChatsGetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChatsGetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type ItemChatsGetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemChatsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChatsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemChatsGetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewItemChatsGetAllRetainedMessagesRequestBuilderInternal instantiates a new ItemChatsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemChatsGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsGetAllRetainedMessagesRequestBuilder) { + m := &ItemChatsGetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemChatsGetAllRetainedMessagesRequestBuilder instantiates a new ItemChatsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemChatsGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsGetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChatsGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a ItemChatsGetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemChatsGetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChatsGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChatsGetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a ItemChatsGetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *ItemChatsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemChatsGetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemChatsGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemChatsGetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemChatsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsGetAllRetainedMessagesRequestBuilder) { + return NewItemChatsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_chats_get_all_retained_messages_response.go b/users/item_chats_get_all_retained_messages_response.go new file mode 100644 index 0000000000..a7b61f0baa --- /dev/null +++ b/users/item_chats_get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemChatsGetAllRetainedMessagesGetResponseable instead. +type ItemChatsGetAllRetainedMessagesResponse struct { + ItemChatsGetAllRetainedMessagesGetResponse +} +// NewItemChatsGetAllRetainedMessagesResponse instantiates a new ItemChatsGetAllRetainedMessagesResponse and sets the default values. +func NewItemChatsGetAllRetainedMessagesResponse()(*ItemChatsGetAllRetainedMessagesResponse) { + m := &ItemChatsGetAllRetainedMessagesResponse{ + ItemChatsGetAllRetainedMessagesGetResponse: *NewItemChatsGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateItemChatsGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemChatsGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemChatsGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemChatsGetAllRetainedMessagesGetResponseable instead. +type ItemChatsGetAllRetainedMessagesResponseable interface { + ItemChatsGetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/users/item_chats_request_builder.go b/users/item_chats_request_builder.go index beac6a5a9f..afb630e78e 100644 --- a/users/item_chats_request_builder.go +++ b/users/item_chats_request_builder.go @@ -104,6 +104,11 @@ func (m *ItemChatsRequestBuilder) Get(ctx context.Context, requestConfiguration func (m *ItemChatsRequestBuilder) GetAllMessages()(*ItemChatsGetAllMessagesRequestBuilder) { return NewItemChatsGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *ItemChatsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemChatsRequestBuilder) GetAllRetainedMessages()(*ItemChatsGetAllRetainedMessagesRequestBuilder) { + return NewItemChatsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to chats for users // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/users/item_get_member_groups_request_builder.go b/users/item_get_member_groups_request_builder.go index ef427d96fa..9b1049ccc0 100644 --- a/users/item_get_member_groups_request_builder.go +++ b/users/item_get_member_groups_request_builder.go @@ -30,7 +30,7 @@ func NewItemGetMemberGroupsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemGetMemberGroupsRequestBuilderInternal(urlParams, requestAdapter) } -// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// Post return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // Deprecated: This method is obsolete. Use PostAsGetMemberGroupsPostResponse instead. // returns a ItemGetMemberGroupsResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,7 +54,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) Post(ctx context.Context, body ItemG } return res.(ItemGetMemberGroupsResponseable), nil } -// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// PostAsGetMemberGroupsPostResponse return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -77,7 +77,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) PostAsGetMemberGroupsPostResponse(ct } return res.(ItemGetMemberGroupsPostResponseable), nil } -// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API. +// ToPostRequestInformation return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. // returns a *RequestInformation when successful func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberGroupsPostRequestBodyable, requestConfiguration *ItemGetMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/item_insights_request_builder.go b/users/item_insights_request_builder.go index 136782c09e..d385a90526 100644 --- a/users/item_insights_request_builder.go +++ b/users/item_insights_request_builder.go @@ -71,9 +71,9 @@ func (m *ItemInsightsRequestBuilder) Delete(ctx context.Context, requestConfigur return nil } // Get get insights from users -// returns a OfficeGraphInsightsable when successful +// returns a ItemInsightsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable, error) { +func (m *ItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { return nil, err @@ -81,19 +81,19 @@ func (m *ItemInsightsRequestBuilder) Get(ctx context.Context, requestConfigurati errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOfficeGraphInsightsFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemInsightsFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable), nil + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable), nil } // Patch update the navigation property insights in users -// returns a OfficeGraphInsightsable when successful +// returns a ItemInsightsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code -func (m *ItemInsightsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable, error) { +func (m *ItemInsightsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { return nil, err @@ -101,14 +101,14 @@ func (m *ItemInsightsRequestBuilder) Patch(ctx context.Context, body iadcd811244 errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, } - res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateOfficeGraphInsightsFromDiscriminatorValue, errorMapping) + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateItemInsightsFromDiscriminatorValue, errorMapping) if err != nil { return nil, err } if res == nil { return nil, nil } - return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable), nil + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable), nil } // Shared provides operations to manage the shared property of the microsoft.graph.officeGraphInsights entity. // returns a *ItemInsightsSharedRequestBuilder when successful @@ -142,7 +142,7 @@ func (m *ItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context } // ToPatchRequestInformation update the navigation property insights in users // returns a *RequestInformation when successful -func (m *ItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.OfficeGraphInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { +func (m *ItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ItemInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) if requestConfiguration != nil { requestInfo.Headers.AddAll(requestConfiguration.Headers) diff --git a/users/item_joined_teams_item_channels_channel_item_request_builder.go b/users/item_joined_teams_item_channels_channel_item_request_builder.go index 8d0f008b41..7e734e06ea 100644 --- a/users/item_joined_teams_item_channels_channel_item_request_builder.go +++ b/users/item_joined_teams_item_channels_channel_item_request_builder.go @@ -41,6 +41,11 @@ type ItemJoinedTeamsItemChannelsChannelItemRequestBuilderPatchRequestConfigurati // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) Archive()(*ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemJoinedTeamsItemChannelsItemCompleteMigrationRequestBuilder when successful func (m *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) CompleteMigration()(*ItemJoinedTeamsItemChannelsItemCompleteMigrationRequestBuilder) { @@ -195,6 +200,11 @@ func (m *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) ToPatchRequestInf } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) Unarchive()(*ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder when successful func (m *ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemChannelsChannelItemRequestBuilder) { diff --git a/users/item_joined_teams_item_channels_get_all_retained_messages_get_response.go b/users/item_joined_teams_item_channels_get_all_retained_messages_get_response.go new file mode 100644 index 0000000000..083f73c1e2 --- /dev/null +++ b/users/item_joined_teams_item_channels_get_all_retained_messages_get_response.go @@ -0,0 +1,89 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" +) + +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse struct { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponse +} +// NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse instantiates a new ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse and sets the default values. +func NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse()(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse) { + m := &ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse{ + BaseCollectionPaginationCountResponse: *iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateChatMessageFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ChatMessageable when successful +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse) GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.BaseCollectionPaginationCountResponse.Serialize(writer) + if err != nil { + return err + } + if m.GetValue() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetValue())) + for i, v := range m.GetValue() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("value", cast) + if err != nil { + return err + } + } + return nil +} +// SetValue sets the value property value. The value property +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse) SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable interface { + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable) + SetValue(value []iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable)() +} diff --git a/users/item_joined_teams_item_channels_get_all_retained_messages_request_builder.go b/users/item_joined_teams_item_channels_get_all_retained_messages_request_builder.go new file mode 100644 index 0000000000..6f25a51040 --- /dev/null +++ b/users/item_joined_teams_item_channels_get_all_retained_messages_request_builder.go @@ -0,0 +1,113 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder provides operations to call the getAllRetainedMessages method. +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetQueryParameters +} +// NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal instantiates a new ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + m := &ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/getAllRetainedMessages(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder instantiates a new ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function getAllRetainedMessages +// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead. +// returns a ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseable), nil +} +// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages +// returns a ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable), nil +} +// ToGetRequestInformation invoke function getAllRetainedMessages +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_channels_get_all_retained_messages_response.go b/users/item_joined_teams_item_channels_get_all_retained_messages_response.go new file mode 100644 index 0000000000..0cbab06410 --- /dev/null +++ b/users/item_joined_teams_item_channels_get_all_retained_messages_response.go @@ -0,0 +1,27 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse struct { + ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse +} +// NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse instantiates a new ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse and sets the default values. +func NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse()(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse) { + m := &ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse{ + ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse: *NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponse(), + } + return m +} +// CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponse(), nil +} +// Deprecated: This class is obsolete. Use ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable instead. +type ItemJoinedTeamsItemChannelsGetAllRetainedMessagesResponseable interface { + ItemJoinedTeamsItemChannelsGetAllRetainedMessagesGetResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/users/item_joined_teams_item_channels_item_archive_post_request_body.go b/users/item_joined_teams_item_channels_item_archive_post_request_body.go new file mode 100644 index 0000000000..6f58173963 --- /dev/null +++ b/users/item_joined_teams_item_channels_item_archive_post_request_body.go @@ -0,0 +1,113 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemChannelsItemArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemChannelsItemArchivePostRequestBody instantiates a new ItemJoinedTeamsItemChannelsItemArchivePostRequestBody and sets the default values. +func NewItemJoinedTeamsItemChannelsItemArchivePostRequestBody()(*ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) { + m := &ItemJoinedTeamsItemChannelsItemArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemChannelsItemArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemChannelsItemArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemJoinedTeamsItemChannelsItemArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemChannelsItemArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/users/item_joined_teams_item_channels_item_archive_request_builder.go b/users/item_joined_teams_item_channels_item_archive_request_builder.go new file mode 100644 index 0000000000..d63d42cca1 --- /dev/null +++ b/users/item_joined_teams_item_channels_item_archive_request_builder.go @@ -0,0 +1,71 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder provides operations to call the archive method. +type ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilderInternal instantiates a new ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) { + m := &ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/archive", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilder instantiates a new ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemChannelsItemArchivePostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemChannelsItemArchiveRequestBuilder) { + return NewItemJoinedTeamsItemChannelsItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_channels_item_unarchive_request_builder.go b/users/item_joined_teams_item_channels_item_unarchive_request_builder.go new file mode 100644 index 0000000000..61a20a03c2 --- /dev/null +++ b/users/item_joined_teams_item_channels_item_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderInternal instantiates a new ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) { + m := &ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/channels/{channel%2Did}/unarchive", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder instantiates a new ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder) { + return NewItemJoinedTeamsItemChannelsItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_channels_request_builder.go b/users/item_joined_teams_item_channels_request_builder.go index df73e87c6b..2661f3bdee 100644 --- a/users/item_joined_teams_item_channels_request_builder.go +++ b/users/item_joined_teams_item_channels_request_builder.go @@ -101,6 +101,11 @@ func (m *ItemJoinedTeamsItemChannelsRequestBuilder) Get(ctx context.Context, req func (m *ItemJoinedTeamsItemChannelsRequestBuilder) GetAllMessages()(*ItemJoinedTeamsItemChannelsGetAllMessagesRequestBuilder) { return NewItemJoinedTeamsItemChannelsGetAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// GetAllRetainedMessages provides operations to call the getAllRetainedMessages method. +// returns a *ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder when successful +func (m *ItemJoinedTeamsItemChannelsRequestBuilder) GetAllRetainedMessages()(*ItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilder) { + return NewItemJoinedTeamsItemChannelsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Post create new navigation property to channels for users // returns a Channelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code diff --git a/users/item_joined_teams_item_primary_channel_archive_post_request_body.go b/users/item_joined_teams_item_primary_channel_archive_post_request_body.go new file mode 100644 index 0000000000..e96e79922e --- /dev/null +++ b/users/item_joined_teams_item_primary_channel_archive_post_request_body.go @@ -0,0 +1,113 @@ +package users + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody instantiates a new ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody and sets the default values. +func NewItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody()(*ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) { + m := &ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemJoinedTeamsItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemJoinedTeamsItemPrimaryChannelArchivePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shouldSetSpoSiteReadOnlyForMembers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetShouldSetSpoSiteReadOnlyForMembers(val) + } + return nil + } + return res +} +// GetShouldSetSpoSiteReadOnlyForMembers gets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +// returns a *bool when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) GetShouldSetSpoSiteReadOnlyForMembers()(*bool) { + val, err := m.GetBackingStore().Get("shouldSetSpoSiteReadOnlyForMembers") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("shouldSetSpoSiteReadOnlyForMembers", m.GetShouldSetSpoSiteReadOnlyForMembers()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShouldSetSpoSiteReadOnlyForMembers sets the shouldSetSpoSiteReadOnlyForMembers property value. The shouldSetSpoSiteReadOnlyForMembers property +func (m *ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBody) SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() { + err := m.GetBackingStore().Set("shouldSetSpoSiteReadOnlyForMembers", value) + if err != nil { + panic(err) + } +} +type ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShouldSetSpoSiteReadOnlyForMembers()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShouldSetSpoSiteReadOnlyForMembers(value *bool)() +} diff --git a/users/item_joined_teams_item_primary_channel_archive_request_builder.go b/users/item_joined_teams_item_primary_channel_archive_request_builder.go new file mode 100644 index 0000000000..67e57ad4cf --- /dev/null +++ b/users/item_joined_teams_item_primary_channel_archive_request_builder.go @@ -0,0 +1,71 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder provides operations to call the archive method. +type ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderInternal instantiates a new ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) { + m := &ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/archive", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder instantiates a new ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// 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/channel-archive?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) Post(ctx context.Context, body ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation archive a channel in a team. When a channel is archived, users can't send new messages or react to existing messages in the channel, edit the channel settings, or make other changes to the channel. You can delete an archived channel or add and remove members from it. If you archive a team, its channels are also archived. Archiving is an asynchronous operation; a channel is archived after the asynchronous archiving operation completes successfully, which might occur after the response returns. A channel without an owner or that belongs to a group that has no owner, can't be archived. To restore a channel from its archived state, use the channel: unarchive method. A channel can’t be archived or unarchived if its team is archived. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedTeamsItemPrimaryChannelArchivePostRequestBodyable, requestConfiguration *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) { + return NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_joined_teams_item_primary_channel_request_builder.go b/users/item_joined_teams_item_primary_channel_request_builder.go index 5471ec2a0e..e2608662ba 100644 --- a/users/item_joined_teams_item_primary_channel_request_builder.go +++ b/users/item_joined_teams_item_primary_channel_request_builder.go @@ -41,6 +41,11 @@ type ItemJoinedTeamsItemPrimaryChannelRequestBuilderPatchRequestConfiguration st // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Archive provides operations to call the archive method. +// returns a *ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemPrimaryChannelRequestBuilder) Archive()(*ItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilder) { + return NewItemJoinedTeamsItemPrimaryChannelArchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // CompleteMigration provides operations to call the completeMigration method. // returns a *ItemJoinedTeamsItemPrimaryChannelCompleteMigrationRequestBuilder when successful func (m *ItemJoinedTeamsItemPrimaryChannelRequestBuilder) CompleteMigration()(*ItemJoinedTeamsItemPrimaryChannelCompleteMigrationRequestBuilder) { @@ -195,6 +200,11 @@ func (m *ItemJoinedTeamsItemPrimaryChannelRequestBuilder) ToPatchRequestInformat } return requestInfo, nil } +// Unarchive provides operations to call the unarchive method. +// returns a *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemPrimaryChannelRequestBuilder) Unarchive()(*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. // returns a *ItemJoinedTeamsItemPrimaryChannelRequestBuilder when successful func (m *ItemJoinedTeamsItemPrimaryChannelRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemPrimaryChannelRequestBuilder) { diff --git a/users/item_joined_teams_item_primary_channel_unarchive_request_builder.go b/users/item_joined_teams_item_primary_channel_unarchive_request_builder.go new file mode 100644 index 0000000000..9752865c58 --- /dev/null +++ b/users/item_joined_teams_item_primary_channel_unarchive_request_builder.go @@ -0,0 +1,67 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder provides operations to call the unarchive method. +type ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderInternal instantiates a new ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) { + m := &ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/joinedTeams/{team%2Did}/primaryChannel/unarchive", pathParameters), + } + return m +} +// NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder instantiates a new ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder and sets the default values. +func NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderInternal(urlParams, requestAdapter) +} +// Post restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// 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/channel-unarchive?view=graph-rest-1.0 +func (m *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation restore an archived channel. Unarchiving restores the ability for users to send messages and edit the channel. Channels are archived via the channel: archive method. Unarchiving is an asynchronous operation; a channel is unarchived when the asynchronous unarchiving operation completes successfully, which might occur after this method responds. +// returns a *RequestInformation when successful +func (m *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder when successful +func (m *ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder) { + return NewItemJoinedTeamsItemPrimaryChannelUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_item_insights_request_builder.go b/users/item_settings_item_insights_request_builder.go new file mode 100644 index 0000000000..3f2ddbda70 --- /dev/null +++ b/users/item_settings_item_insights_request_builder.go @@ -0,0 +1,157 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsItemInsightsRequestBuilder provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. +type ItemSettingsItemInsightsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsItemInsightsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsItemInsightsRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSettingsItemInsightsRequestBuilderGetQueryParameters get itemInsights from users +type ItemSettingsItemInsightsRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSettingsItemInsightsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsItemInsightsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsItemInsightsRequestBuilderGetQueryParameters +} +// ItemSettingsItemInsightsRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsItemInsightsRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSettingsItemInsightsRequestBuilderInternal instantiates a new ItemSettingsItemInsightsRequestBuilder and sets the default values. +func NewItemSettingsItemInsightsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsItemInsightsRequestBuilder) { + m := &ItemSettingsItemInsightsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/itemInsights{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemSettingsItemInsightsRequestBuilder instantiates a new ItemSettingsItemInsightsRequestBuilder and sets the default values. +func NewItemSettingsItemInsightsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsItemInsightsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsItemInsightsRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property itemInsights for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsItemInsightsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsItemInsightsRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get itemInsights from users +// returns a UserInsightsSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsItemInsightsRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserInsightsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable), nil +} +// Patch update the navigation property itemInsights in users +// returns a UserInsightsSettingsable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsItemInsightsRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable, requestConfiguration *ItemSettingsItemInsightsRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserInsightsSettingsFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable), nil +} +// ToDeleteRequestInformation delete navigation property itemInsights for users +// returns a *RequestInformation when successful +func (m *ItemSettingsItemInsightsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsItemInsightsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get itemInsights from users +// returns a *RequestInformation when successful +func (m *ItemSettingsItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property itemInsights in users +// returns a *RequestInformation when successful +func (m *ItemSettingsItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserInsightsSettingsable, requestConfiguration *ItemSettingsItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsItemInsightsRequestBuilder when successful +func (m *ItemSettingsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsItemInsightsRequestBuilder) { + return NewItemSettingsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_request_builder.go b/users/item_settings_request_builder.go index a7448f13f8..8dd9637b26 100644 --- a/users/item_settings_request_builder.go +++ b/users/item_settings_request_builder.go @@ -90,6 +90,11 @@ func (m *ItemSettingsRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserSettingsable), nil } +// ItemInsights provides operations to manage the itemInsights property of the microsoft.graph.userSettings entity. +// returns a *ItemSettingsItemInsightsRequestBuilder when successful +func (m *ItemSettingsRequestBuilder) ItemInsights()(*ItemSettingsItemInsightsRequestBuilder) { + return NewItemSettingsItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Patch update the navigation property settings in users // returns a UserSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -115,6 +120,11 @@ func (m *ItemSettingsRequestBuilder) Patch(ctx context.Context, body iadcd811244 func (m *ItemSettingsRequestBuilder) ShiftPreferences()(*ItemSettingsShiftPreferencesRequestBuilder) { return NewItemSettingsShiftPreferencesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Storage provides operations to manage the storage property of the microsoft.graph.userSettings entity. +// returns a *ItemSettingsStorageRequestBuilder when successful +func (m *ItemSettingsRequestBuilder) Storage()(*ItemSettingsStorageRequestBuilder) { + return NewItemSettingsStorageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property settings for users // returns a *RequestInformation when successful func (m *ItemSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/users/item_settings_storage_quota_request_builder.go b/users/item_settings_storage_quota_request_builder.go new file mode 100644 index 0000000000..3e96205055 --- /dev/null +++ b/users/item_settings_storage_quota_request_builder.go @@ -0,0 +1,162 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsStorageQuotaRequestBuilder provides operations to manage the quota property of the microsoft.graph.userStorage entity. +type ItemSettingsStorageQuotaRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsStorageQuotaRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSettingsStorageQuotaRequestBuilderGetQueryParameters get quota from users +type ItemSettingsStorageQuotaRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSettingsStorageQuotaRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsStorageQuotaRequestBuilderGetQueryParameters +} +// ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSettingsStorageQuotaRequestBuilderInternal instantiates a new ItemSettingsStorageQuotaRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaRequestBuilder) { + m := &ItemSettingsStorageQuotaRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemSettingsStorageQuotaRequestBuilder instantiates a new ItemSettingsStorageQuotaRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsStorageQuotaRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property quota for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get quota from users +// returns a UnifiedStorageQuotaable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUnifiedStorageQuotaFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable), nil +} +// Patch update the navigation property quota in users +// returns a UnifiedStorageQuotaable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUnifiedStorageQuotaFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable), nil +} +// Services provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +// returns a *ItemSettingsStorageQuotaServicesRequestBuilder when successful +func (m *ItemSettingsStorageQuotaRequestBuilder) Services()(*ItemSettingsStorageQuotaServicesRequestBuilder) { + return NewItemSettingsStorageQuotaServicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property quota for users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get quota from users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property quota in users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UnifiedStorageQuotaable, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsStorageQuotaRequestBuilder when successful +func (m *ItemSettingsStorageQuotaRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageQuotaRequestBuilder) { + return NewItemSettingsStorageQuotaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_storage_quota_services_count_request_builder.go b/users/item_settings_storage_quota_services_count_request_builder.go new file mode 100644 index 0000000000..851ec19913 --- /dev/null +++ b/users/item_settings_storage_quota_services_count_request_builder.go @@ -0,0 +1,80 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsStorageQuotaServicesCountRequestBuilder provides operations to count the resources in the collection. +type ItemSettingsStorageQuotaServicesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsStorageQuotaServicesCountRequestBuilderGetQueryParameters get the number of the resource +type ItemSettingsStorageQuotaServicesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ItemSettingsStorageQuotaServicesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsStorageQuotaServicesCountRequestBuilderGetQueryParameters +} +// NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal instantiates a new ItemSettingsStorageQuotaServicesCountRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesCountRequestBuilder) { + m := &ItemSettingsStorageQuotaServicesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewItemSettingsStorageQuotaServicesCountRequestBuilder instantiates a new ItemSettingsStorageQuotaServicesCountRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal(urlParams, requestAdapter) +} +// Get get the number of the resource +// returns a *int32 when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.SendPrimitive(ctx, requestInfo, "int32", errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(*int32), nil +} +// ToGetRequestInformation get the number of the resource +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9") + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsStorageQuotaServicesCountRequestBuilder when successful +func (m *ItemSettingsStorageQuotaServicesCountRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageQuotaServicesCountRequestBuilder) { + return NewItemSettingsStorageQuotaServicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_storage_quota_services_request_builder.go b/users/item_settings_storage_quota_services_request_builder.go new file mode 100644 index 0000000000..f8ffbf7a83 --- /dev/null +++ b/users/item_settings_storage_quota_services_request_builder.go @@ -0,0 +1,152 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsStorageQuotaServicesRequestBuilder provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +type ItemSettingsStorageQuotaServicesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsStorageQuotaServicesRequestBuilderGetQueryParameters get services from users +type ItemSettingsStorageQuotaServicesRequestBuilderGetQueryParameters struct { + // Include count of items + Count *bool `uriparametername:"%24count"` + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Order items by property values + Orderby []string `uriparametername:"%24orderby"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` + // Skip the first n items + Skip *int32 `uriparametername:"%24skip"` + // Show only the first n items + Top *int32 `uriparametername:"%24top"` +} +// ItemSettingsStorageQuotaServicesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsStorageQuotaServicesRequestBuilderGetQueryParameters +} +// ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByServiceStorageQuotaBreakdownId provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +// returns a *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder when successful +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ByServiceStorageQuotaBreakdownId(serviceStorageQuotaBreakdownId string)(*ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if serviceStorageQuotaBreakdownId != "" { + urlTplParams["serviceStorageQuotaBreakdown%2Did"] = serviceStorageQuotaBreakdownId + } + return NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewItemSettingsStorageQuotaServicesRequestBuilderInternal instantiates a new ItemSettingsStorageQuotaServicesRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesRequestBuilder) { + m := &ItemSettingsStorageQuotaServicesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewItemSettingsStorageQuotaServicesRequestBuilder instantiates a new ItemSettingsStorageQuotaServicesRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsStorageQuotaServicesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ItemSettingsStorageQuotaServicesCountRequestBuilder when successful +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Count()(*ItemSettingsStorageQuotaServicesCountRequestBuilder) { + return NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get services from users +// returns a ServiceStorageQuotaBreakdownCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownCollectionResponseable), nil +} +// Post create new navigation property to services for users +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// ToGetRequestInformation get services from users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPostRequestInformation create new navigation property to services for users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsStorageQuotaServicesRequestBuilder when successful +func (m *ItemSettingsStorageQuotaServicesRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageQuotaServicesRequestBuilder) { + return NewItemSettingsStorageQuotaServicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_storage_quota_services_service_storage_quota_breakdown_item_request_builder.go b/users/item_settings_storage_quota_services_service_storage_quota_breakdown_item_request_builder.go new file mode 100644 index 0000000000..a2ce322ead --- /dev/null +++ b/users/item_settings_storage_quota_services_service_storage_quota_breakdown_item_request_builder.go @@ -0,0 +1,157 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +type ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters get services from users +type ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetQueryParameters +} +// ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal instantiates a new ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + m := &ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage/quota/services/{serviceStorageQuotaBreakdown%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder instantiates a new ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder and sets the default values. +func NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property services for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get services from users +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// Patch update the navigation property services in users +// returns a ServiceStorageQuotaBreakdownable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateServiceStorageQuotaBreakdownFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable), nil +} +// ToDeleteRequestInformation delete navigation property services for users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get services from users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property services in users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder when successful +func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { + return NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_settings_storage_request_builder.go b/users/item_settings_storage_request_builder.go new file mode 100644 index 0000000000..dad4838fba --- /dev/null +++ b/users/item_settings_storage_request_builder.go @@ -0,0 +1,162 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242 "github.com/microsoftgraph/msgraph-sdk-go/models" + ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a "github.com/microsoftgraph/msgraph-sdk-go/models/odataerrors" +) + +// ItemSettingsStorageRequestBuilder provides operations to manage the storage property of the microsoft.graph.userSettings entity. +type ItemSettingsStorageRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemSettingsStorageRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemSettingsStorageRequestBuilderGetQueryParameters get storage from users +type ItemSettingsStorageRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemSettingsStorageRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemSettingsStorageRequestBuilderGetQueryParameters +} +// ItemSettingsStorageRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemSettingsStorageRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemSettingsStorageRequestBuilderInternal instantiates a new ItemSettingsStorageRequestBuilder and sets the default values. +func NewItemSettingsStorageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageRequestBuilder) { + m := &ItemSettingsStorageRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/storage{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemSettingsStorageRequestBuilder instantiates a new ItemSettingsStorageRequestBuilder and sets the default values. +func NewItemSettingsStorageRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsStorageRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemSettingsStorageRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property storage for users +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsStorageRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get storage from users +// returns a UserStorageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsStorageRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserStorageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable), nil +} +// Patch update the navigation property storage in users +// returns a UserStorageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemSettingsStorageRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable, requestConfiguration *ItemSettingsStorageRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": ia572726a95efa92ddd544552cd950653dc691023836923576b2f4bf716cf204a.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.CreateUserStorageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable), nil +} +// Quota provides operations to manage the quota property of the microsoft.graph.userStorage entity. +// returns a *ItemSettingsStorageQuotaRequestBuilder when successful +func (m *ItemSettingsStorageRequestBuilder) Quota()(*ItemSettingsStorageQuotaRequestBuilder) { + return NewItemSettingsStorageQuotaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property storage for users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToGetRequestInformation get storage from users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsStorageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.QueryParameters != nil { + requestInfo.AddQueryParameters(*(requestConfiguration.QueryParameters)) + } + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + return requestInfo, nil +} +// ToPatchRequestInformation update the navigation property storage in users +// returns a *RequestInformation when successful +func (m *ItemSettingsStorageRequestBuilder) ToPatchRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserStorageable, requestConfiguration *ItemSettingsStorageRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemSettingsStorageRequestBuilder when successful +func (m *ItemSettingsStorageRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageRequestBuilder) { + return NewItemSettingsStorageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index 8b66d1401e..83940025e9 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -139,11 +139,11 @@ func (m *UserItemRequestBuilder) Contacts()(*ItemContactsRequestBuilder) { func (m *UserItemRequestBuilder) CreatedObjects()(*ItemCreatedObjectsRequestBuilder) { return NewItemCreatedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Delete delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. +// Delete deletes a user. // 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/user-delete?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-delete?view=graph-rest-1.0 func (m *UserItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *UserItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -361,7 +361,7 @@ func (m *UserItemRequestBuilder) OwnedObjects()(*ItemOwnedObjectsRequestBuilder) // 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/intune-onboarding-user-update?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/user-update?view=graph-rest-1.0 func (m *UserItemRequestBuilder) Patch(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, requestConfiguration *UserItemRequestBuilderPatchRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -474,7 +474,7 @@ func (m *UserItemRequestBuilder) Sponsors()(*ItemSponsorsRequestBuilder) { func (m *UserItemRequestBuilder) Teamwork()(*ItemTeamworkRequestBuilder) { return NewItemTeamworkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete user. When deleted, user resources are moved to a temporary container and can be restored within 30 days. After that time, they are permanently deleted. To learn more, see deletedItems. +// ToDeleteRequestInformation deletes a user. // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *UserItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/users_request_builder.go b/users/users_request_builder.go index a4aedd3689..90a8113cb6 100644 --- a/users/users_request_builder.go +++ b/users/users_request_builder.go @@ -11,7 +11,7 @@ import ( type UsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// UsersRequestBuilderGetQueryParameters retrieve a list of user objects. +// UsersRequestBuilderGetQueryParameters list properties and relationships of the user objects. type UsersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -79,12 +79,12 @@ func (m *UsersRequestBuilder) Count()(*CountRequestBuilder) { func (m *UsersRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of user objects. +// Get list properties and relationships of the user objects. // returns a UserCollectionResponseable 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/user-list?view=graph-rest-1.0 +// [Find more info here]: https://learn.microsoft.com/graph/api/intune-onboarding-user-list?view=graph-rest-1.0 func (m *UsersRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.UserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -135,7 +135,7 @@ func (m *UsersRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e64 } return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Userable), nil } -// ToGetRequestInformation retrieve a list of user objects. +// ToGetRequestInformation list properties and relationships of the user objects. // returns a *RequestInformation when successful func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)